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

◆ Task() [26/26]

System.Threading.Tasks.Task< TResult >.Task ( Delegate action,
object state,
Task< TResult > parent,
CancellationToken cancellationToken,
TaskCreationOptions creationOptions,
InternalTaskOptions internalOptions,
TaskScheduler scheduler )
inlinepackage

Definition at line 1290 of file Task.cs.

1291 {
1292 if ((object)action == null)
1293 {
1294 ThrowHelper.ThrowArgumentNullException(ExceptionArgument.action);
1295 }
1296 if (parent != null && (creationOptions & TaskCreationOptions.AttachedToParent) != 0)
1297 {
1299 }
1301 CapturedContext = ExecutionContext.Capture();
1302 }
static ? ExecutionContext Capture()
ContingentProperties EnsureContingentPropertiesInitializedUnsafe()
Definition Task.cs:1647
ExecutionContext? CapturedContext
Definition Task.cs:1160
void TaskConstructorCore(Delegate action, object state, CancellationToken cancellationToken, TaskCreationOptions creationOptions, InternalTaskOptions internalOptions, TaskScheduler scheduler)
Definition Task.cs:1304

References System.action, System.cancellationToken, System.Threading.ExecutionContext.Capture(), System.Threading.Tasks.Task< TResult >.CapturedContext, System.creationOptions, System.Threading.Tasks.Task< TResult >.EnsureContingentPropertiesInitializedUnsafe(), System.Threading.Tasks.Task< TResult >.ContingentProperties.m_parent, System.scheduler, System.state, System.Threading.Tasks.Task< TResult >.TaskConstructorCore(), and System.ThrowHelper.ThrowArgumentNullException().