AsyncioScheduler wait() method doesn't actually wait
minznerjosh opened this issue · 0 comments
minznerjosh commented
promise/promise/schedulers/asyncio.py
Lines 13 to 22 in ad8ebe6
As per the docs, the Event.wait()
method returns a coroutine. So in order to block function execution it would need to be await
ed from another coroutine.
The end result is that the Promise.get()
method always returns None
when using the AsyncioScheduler
unless the promise was previously fulfilled.