Hacker News new | ask | show | jobs
by FreeHugs 2142 days ago
waitUntilResolved() would wait until the promises are resolved and of course let other code execute meanwhile.
2 comments

It sounds like your waitUntilResolved() function is effectively asyncio.gather(), which due to the nature of Python’s async implementation is not something that could be used in a Django view prior to this release.
That's an awesome function. Is it multiprocess?
It was pseudocode.

If a function like this exists, it would just sleep until the given promises are resolved. I don't see how that is realted to the term "multiprocess".

Well I don't really see how it can exist, do non-blocking io and wait for promises while performing a sleep. So the only way left is multiprocess.