C# has CancellationToken, but it’s just for canceling operations, not a general purpose context.