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
$ python test.py
Traceback (most recent call last):
File "test.py", line 43, in <module>
asyncio.run(main(container))
File "/usr/local/lib/python3.9/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/local/lib/python3.9/asyncio/base_events.py", line 647, in run_until_complete
return future.result()
File "test.py", line 35, in main
assert isinstance(service, Service)
AssertionError
So where do I need to call disable_async_mode for it to work as I need?
The text was updated successfully, but these errors were encountered:
I need to be able to get a service in a sync function. I've tried
While this works, I don't want to do this everywhere:
I've tried to call
disable_async_mode
ininit_resources
, but it doesn't work:So where do I need to call
disable_async_mode
for it to work as I need?The text was updated successfully, but these errors were encountered: