You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It made sense in a "like asyncio" way, but... kind of sucks. Deferred.fromCoroutine matches better, perhaps.
But asyncio went through this same evolution, starting with ensure_future and deprecating it in favor of create_task, and that's more or less what we're suggesting here.
I thought the thing that made 'ensureDeferred()' descriptive was that you could pass in multiple sorts of things, including a deferred, and the function would make sure you had a deferred at the output. A theoretical Deferred.fromCoroutine() should presumably fail if passed a deferred. fromCoroutine() sounds to me like a thing that ensureDeferred() would call when appropriate.
Originally described as:
But
asyncio
went through this same evolution, starting withensure_future
and deprecating it in favor ofcreate_task
, and that's more or less what we're suggesting here.Searchable metadata
The text was updated successfully, but these errors were encountered: