Answer the question
In order to leave comments, you need to log in
Why are get_running_loop() and set_event_loop() needed in asyncio?
Sorry for the stupid question, but I couldn't find a clear explanation with an example
Answer the question
In order to leave comments, you need to log in
And what can be incomprehensible here? get_running_loop
returns an event loop that can be used later, but set_event_loop
allows you to set the event loop on a new thread to reuse it.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question