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

◆ StartNew() [4/4]

static Task< TResult > System.Threading.Tasks.Task< TResult >.StartNew ( Task< TResult > parent,
Func< TResult > function,
CancellationToken cancellationToken,
TaskCreationOptions creationOptions,
InternalTaskOptions internalOptions,
TaskScheduler scheduler )
inlinestaticpackageinherited

Definition at line 132 of file Task.cs.

133 {
134 if (function == null)
135 {
136 ThrowHelper.ThrowArgumentNullException(ExceptionArgument.function);
137 }
138 if (scheduler == null)
139 {
140 ThrowHelper.ThrowArgumentNullException(ExceptionArgument.scheduler);
141 }
143 task.ScheduleAndStart(needsProtection: false);
144 return task;
145 }

References System.cancellationToken, System.creationOptions, System.scheduler, System.task, and System.ThrowHelper.ThrowArgumentNullException().

Referenced by System.IO.TextReader.ReadAsyncInternal().