3 ms·
Yes, the library design is based on that article. However, there are couple of simplifications that were done in the meantime. Most importantly, the article g
by rumcajz 10y ago
Yes, the library design is based on that article.
However, there are couple of simplifications that were done in the meantime.
Most importantly, the article goes into great pains to define a single API that deals with both soft and hard cancellation of coroutines.
The library takes advantage of the fact that soft cancellation is always application-specific and provides a single API to do hard cancellation (hclose(h)). User is free to implement the soft cancellation themselves.