2

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.

4

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.