Expand description
System.Threading: the cancellation of work, and tasks (tasks).
Modules§
- tasks
System.Threading.Tasks: tasks, their completion sources, and the running of futures on the thread that started them (docs/porting/reactive.md, section 5.8).
Structs§
- Cancellation
Token - Propagates notification that operations should be canceled.
- Cancellation
Token Registration - A callback registered with a
CancellationToken. - Cancellation
Token Source - Signals to one or more
CancellationTokens that they should be canceled. - Local
Cancellation Token Registration - A callback registered with
CancellationToken::register_local; it belongs to the thread that registered it.
Traits§
- Synchronization
Context - Where posted work runs (
System.Threading.SynchronizationContext).
Functions§
- current_
synchronization_ context - The current context of the calling thread (
SynchronizationContext.Current). - set_
synchronization_ context - Sets the current context of the calling thread (
SynchronizationContext.SetSynchronizationContext), and makes it the thread poster of the thread, through which other threads wake its tasks and run its cancellations;Noneclears both.