News for hackers. Stuff that matters.
Re:Show HN: Neco – Coroutine Library for C by swatcoder on Tuesday April 09, 2024 @08:34PM (#39985754)
I encourage you to dig through the source. There's not that much.

Either this is a library you might use, so you should obviously review the code before you include it in your own work, or this is something that intrigued you, so you'll find clever ideas by digging into its implementation.

Here, neco_sleep eventually calls a function that tells the coroutine scheduler to pause the current (calling) and resume the next eligible coroutine in its collection.

There are no comments on this comment yet.