3 ms·
Someone already mentioned about the co library. My personal experience is that it is excellent and massively simplifies async calls. The API resembles the async
by zubi 10y ago
Someone already mentioned about the co library. My personal experience is that it is excellent and massively simplifies async calls. The API resembles the async/await pattern: you use the keyword "yield" instead of "await". Async calls look as if they are sync. The code that includes heavy use of async methods such as in a database application greatly benefits from co in terms of code readability.