Great module you got going on! I am attempting to make Python function identically to NodeJS as part of a personal project. Currently, I am using your Promises in a fashion that follows A+ but still have some trouble understanding how this module would interact with an asyncio event loop.
Does the event loop recognize when a Promise is fulfilled - similarly to how an asyncio.Future is given a result (via set_result) and marked as done?
If you have time, a toy example implementation of using your Promises with the asyncio event loop (mimicking Node's event loop) would help a lot.
Hi,
Great module you got going on! I am attempting to make Python function identically to NodeJS as part of a personal project. Currently, I am using your Promises in a fashion that follows A+ but still have some trouble understanding how this module would interact with an
asyncio
event loop.Does the event loop recognize when a
Promise
isfulfilled
- similarly to how anasyncio.Future
is given a result (viaset_result
) and marked as done?If you have time, a toy example implementation of using your Promises with the
asyncio
event loop (mimicking Node's event loop) would help a lot.Thanks!