2 ms·
async def mycoroutine(): await operationA() await sleep(24 * 60 * 60) # wait 1 day await operationB() The article lacks an example demonstrat
by halayli 3y ago
async def mycoroutine():
await operationA()
await sleep(24 * 60 * 60) # wait 1 day
await operationB()
The article lacks an example demonstrating how it can solve a real problem. I felt the authors aren't able to come up with such a concrete example nor does it talk about its overhead and global state atomicity.
- achille-roussel 3y agoThe goal of this article was to lay the concepts and give insight into the technical machinery, so you’re right, it didn’t contain a lot of concrete examples. I invite you to check out part 2 of this series, which focuses more on the Python implementation https://stealthrocket.tech/blog/distributed-coroutines-in-python https://stealthrocket.tech/blog/distributed-coroutines-in-py... Stay tuned for more content as well, we couldn’t fit everything in one post!