The author of Trio (Python concurrency library) explains their concept of lexically-structured concurrency
Coroutines in C using Duff's device. See also protothreads:
http://dunkels.com/adam/pt/
This looks like an interesting C library for cancel-able, implicitly yielded coroutines.
https://github.com/sustrik/libdill