News for hackers. Stuff that matters.
Re:Async Cancellation by yoshuaw on Friday November 12, 2021 @07:20AM (#29198596)
> One mechanism that doesn't seem to be mentioned is the .net style "manual" cancellation where CancellationToken is passed around everywhere and manually checked, often throwing an exception to early return.

The async-rs/stop-token [1] library does exactly this.

This post is just the first in a series. In a follow-up post I'm planning to zoom in on the uses and design of cancellation tokens.

[1]: https://github.com/async-rs/stop-token

Re:Async Cancellation by fowl2 on Monday November 15, 2021 @06:15AM (#29226096)
looking forward to it!