1. 8
  1.  

  2. 4

    Really surprised there’s no reference to .NET’s CancellationToken: https://docs.microsoft.com/en-us/dotnet/api/system.threading.cancellationtoken?view=net-5.0. (See also http://joeduffyblog.com/2015/11/19/asynchronous-everything/ for a discussion of async cancellation in Midori, the system that invented async/await.)