Make an @inlineCallbacks cancellable.

Parametersga generator object returned by calling a function or method decorated with @inlineCallbacks
ReturnsDeferred for the @inlineCallbacks that is cancellable.
Function cancel Undocumented
Function handleCancel Propagate the cancellation of an @inlineCallbacks to the Deferred it is waiting on.
def cancel(it): (source)
Undocumented
def handleCancel(result): (source)

Propagate the cancellation of an @inlineCallbacks to the Deferred it is waiting on.

ParametersresultAn _InternalInlineCallbacksCancelledError from cancel().
ReturnsA new Deferred that the @inlineCallback generator can callback or errback through.
API Documentation for Twisted, generated by pydoctor at 2020-03-20 23:54:06.