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
Here default event loop is retrieved even if user provided loop keyword argument. It leads to exception when default event loop is not initialised.
self._loop is not passed to Future at self._run_complete. Also QueryMessage need not to instantiate a Future on its own. Actor class is better to create the Future and pass its self._loop into it.
AbstractActor
's initialiser accepts externalloop
but it doesn't use the parameter correctly.Here default event loop is retrieved even if user provided
loop
keyword argument. It leads to exception when default event loop is not initialised.self._loop
is not passed toFuture
atself._run_complete
. AlsoQueryMessage
need not to instantiate aFuture
on its own. Actor class is better to create theFuture
and pass itsself._loop
into it.As a use case, here's recommendation for testing
asyncio
code from one of the library's authors.The text was updated successfully, but these errors were encountered: