Project to demonstrate long delays during CancellationTokenSource.Cancel() calls
At the top of main
, set induceCancel = true;
to increase the number of awaited tasks and demonstrate that something is keeping the tasks from respecting the triggered cancellation token in a timely fashion
taskDelayMs
is the number of milliseconds the DoSomething
task should wait before returning. Default is 20 seconds to demonstrate that nothing is going on, yet the cancellation still takes a long time.