Can also still be used lazily for usages outside of context manager
An advantage of using the context manager is that the event loop can be cleaned up gracefully before the interpreter shuts down, preventing issues with "trying to schedule call after executor shutdown" and other shutdown races/warnings.
Can also still be used lazily for usages outside of context manager
An advantage of using the context manager is that the event loop can be cleaned up gracefully before the interpreter shuts down, preventing issues with "trying to schedule call after executor shutdown" and other shutdown races/warnings.