Skip to content

Project to demonstrate long delays during CancellationTokenSource.Cancel() calls

Notifications You must be signed in to change notification settings

TNT0305/TestWait

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TestWait

Project to demonstrate long delays during CancellationTokenSource.Cancel() calls

Notes

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.

About

Project to demonstrate long delays during CancellationTokenSource.Cancel() calls

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages