You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We support asyncio and have an async api, but to provide the best experience possible for our api consumers, we should make an effort to ensure they use the same event loop between multiple calls to work well with PythonMonkey's event loop
Note, application developers should never have to worry about the event loop - see docs here:
Application developers should typically use the high-level asyncio functions, such as asyncio.run(), and should rarely need to reference the loop object or call its methods. This section is intended mostly for authors of lower-level code, libraries, and frameworks, who need finer control over the event loop behavior.
maybe run
import nest_asyncio
nest_asyncio.apply()
if we have top level awwait
The text was updated successfully, but these errors were encountered:
We support asyncio and have an async api, but to provide the best experience possible for our api consumers, we should make an effort to ensure they use the same event loop between multiple calls to work well with PythonMonkey's event loop
Note, application developers should never have to worry about the event loop - see docs here:
maybe run
if we have top level awwait
The text was updated successfully, but these errors were encountered: