As per the docs, the Event.wait() method returns a coroutine. So in order to block function execution it would need to be awaited 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.
https://github.com/syrusakbary/promise/blob/ad8ebe68cd9c9686793e3449457f175a0fe43226/promise/schedulers/asyncio.py#L13-L22
As per the docs, the
Event.wait()
method returns a coroutine. So in order to block function execution it would need to beawait
ed from another coroutine.The end result is that the
Promise.get()
method always returnsNone
when using theAsyncioScheduler
unless the promise was previously fulfilled.