Suppose we have some asyncio Protocol running. And I need, for example, create Transport to specific socket adress from Protocol handler.
This operation is async. But protocol handler is an ordinary function. We cannot call something like run_until_complete
, because loop is already running.
Is there any way to solve this? I hope there is something cleaner, than creating another Task with Queue to it.