code: def yieldefer(function):
      
      defer.inlineCallbacks
      return lambda *args, **kwargs: _yielddefer(function, *args, **kwargs)
docs: Replacement for :func:`defer.inlineCallbacks` that supports cancellation.