News for hackers. Stuff that matters.
Re:Show HN: Coros – A Modern C++ Library for Task Parallelism by Koshkin on Wednesday September 25, 2024 @01:23PM (#41649700)
One way to get a sense of coroutines is to consider the behavior presented by the async/await design pattern [1], where 'await' suspends the execution of the currently running code and yields control to the 'async' task. (As an adage goes, "async is not asynchronous, and await does not await anything.") Yet another pattern is "promise/future", where the code execution is (or may be) suspended as soon as the code tries to obtain the promised result.

[1] https://learn.microsoft.com/en-us/dotnet/csharp/asynchronous...

There are no comments on this comment yet.