Hacker News new | past | comments | ask | show | jobs | submit login

waitUntilResolved() would wait until the promises are resolved and of course let other code execute meanwhile.



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.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: