Background
Interruption API This problem isn’t new to fibers. On the thread domain the usual approaches are:
(Windows) Every time you block on a thread, do it using WaitForMultipleObjects so another thread might signal you to stop your activity and exit earlier. It’s verbose and boring and error-prone and also require extra non-standard communcation protocols/idioms between every spawned thread and the killer thread.
Bad as it is, this style hasn’t died.
[Read More]