Currently we support asyncio sub-contexts to the thread-local context. But there's a bug: it only enables e.g. asyncio contexts in the current thread if you call use_asyncio_context().
Additionally, we want to support a different kind of sub-context, for Twisted's inlineCallbacks. There's no good way to support both, or even to make sure only one gets registered.
Currently we support
asyncio
sub-contexts to the thread-local context. But there's a bug: it only enables e.g. asyncio contexts in the current thread if you calluse_asyncio_context()
.Additionally, we want to support a different kind of sub-context, for Twisted's
inlineCallbacks
. There's no good way to support both, or even to make sure only one gets registered.