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
This will allow me to inject a loop instance into the finalize method, circumventing the runtime error caused by asyncio.get_running_loop() in the absence of a running loop.
Additional context
No response
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
Is your feature request related to a problem? Please describe.
I am running some tasks by awaiting the
Sanic.run_delayed_task
interface. All is well, except for the fact that I cannot dispatch signals.The error raised when dispatching a signal is
TypeError: 'NoneType' object is not callable
and originates from a non-finalized signal router.The signal router cannot be finalized without a running event loop.
Describe the solution you'd like
Add a
loop
keyword argument to the signal router'sfinalize
method.This will allow me to inject a loop instance into the finalize method, circumventing the runtime error caused by
asyncio.get_running_loop()
in the absence of a running loop.Additional context
No response
The text was updated successfully, but these errors were encountered: