twisted.internet.defer.Deferred.asFuture(self, loop) method documentationtwisted.internet.defer.Deferred
          View Source
          
        
      Adapt a Deferred into a asyncio.Future which is bound to loop.
| Parameters | loop | The asyncio event loop to bind the asyncio.Future to. (type: asyncio.AbstractEventLoop or similar) | 
| deferred | The Deferred to adapt. (type: Deferred) | |
| Returns | A Future which will fire when the Deferred fires. (type: asyncio.Future) | |
| Present Since | Twisted 17.5.0 | |
| Note | converting a Deferred to an asyncio.Future consumes both its result and its errors, so this method implicitly converts self into a Deferred firing with None, regardless of what its result previously would have been. | |
| Function | createFuture | Undocumented | 
| Function | checkCancel | Undocumented | 
| Function | maybeFail | Undocumented | 
| Function | maybeSucceed | Undocumented |