Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Register() [6/6]

CancellationTokenRegistration System.Threading.CancellationToken.Register ( Delegate callback,
object state,
bool useSynchronizationContext,
bool useExecutionContext )
inlineprivate

Definition at line 77 of file CancellationToken.cs.

78 {
79 if ((object)callback == null)
80 {
81 throw new ArgumentNullException("callback");
82 }
83 return _source?.Register(callback, state, useSynchronizationContext ? SynchronizationContext.Current : null, useExecutionContext ? ExecutionContext.Capture() : null) ?? default(CancellationTokenRegistration);
84 }
CancellationTokenRegistration Register(Delegate callback, object stateForCallback, SynchronizationContext syncContext, ExecutionContext executionContext)
readonly CancellationTokenSource _source

References System.Threading.CancellationToken._source, System.Threading.ExecutionContext.Capture(), System.Threading.SynchronizationContext.Current, System.Threading.CancellationTokenSource.Register(), and System.state.