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

◆ Run() [8/8]

static Task System.Threading.Tasks.Task< TResult >.Run ( Func< Task< TResult >?> function,
CancellationToken cancellationToken )
inlinestaticinherited

Definition at line 3420 of file Task.cs.

3421 {
3422 if (function == null)
3423 {
3424 ThrowHelper.ThrowArgumentNullException(ExceptionArgument.function);
3425 }
3426 if (cancellationToken.IsCancellationRequested)
3427 {
3429 }
3430 Task<Task> outerTask = Task<Task>.Factory.StartNew(function, cancellationToken, TaskCreationOptions.DenyChildAttach, TaskScheduler.Default);
3432 }
static Task FromCanceled(CancellationToken cancellationToken)
Definition Task.cs:3363

References System.cancellationToken, System.Threading.Tasks.TaskScheduler.Default, System.Threading.Tasks.Task< TResult >.FromCanceled(), and System.ThrowHelper.ThrowArgumentNullException().