Adapt an asyncio.Future to a Deferred.

ParametersfutureThe Future to adapt. (type: asyncio.Future)
ReturnsA Deferred which will fire when the Future fires. (type: Deferred)
Present SinceTwisted 17.5.0
NoteThis creates a Deferred from a asyncio.Future, not from a coroutine; in other words, you will need to call asyncio.ensure_future, asyncio.loop.create_task or create an asyncio.Task yourself to get from a coroutine to a asyncio.Future if what you have is an awaitable coroutine and not a asyncio.Future. (The length of this list of techniques is exactly why we have left it to the caller!)
Function adapt Undocumented
Function cancel Undocumented
Function uncancel Undocumented
def adapt(result): (source)
Undocumented
def cancel(reself): (source)
Undocumented
def uncancel(result): (source)
Undocumented
API Documentation for Twisted, generated by pydoctor at 2020-03-20 23:54:06.