0x00x0050
Members 38
| Offset | Size | Name | Type | Flags | Default |
|---|---|---|---|---|---|
| 0x04 | s_taskIdCounter | int | Static+1 flags | — | |
| 0x04 | m_taskId | int | Private | — | |
| 0x0014 | 0x04 | padding / unreflected | |||
| 0x08 | m_action | Delegate | 1 flags | — | |
| 0x08 | m_stateObject | object | 1 flags | — | |
| 0x08 | m_taskScheduler | TaskScheduler | 1 flags | — | |
| 0x08 | m_parent | Task | 2 flags | — | |
| 0x04 | m_stateFlags | int | 1 flags | — | |
| — | 0x04 | OptionsMask | int | PrivateStatic+1 flags | 0 |
| — | 0x04 | TASK_STATE_STARTED | int | Static+2 flags | 0 |
| — | 0x04 | TASK_STATE_DELEGATE_INVOKED | int | Static+2 flags | 0 |
| — | 0x04 | TASK_STATE_DISPOSED | int | Static+2 flags | 0 |
| — | 0x04 | TASK_STATE_EXCEPTIONOBSERVEDBYPARENT | int | Static+2 flags | 0 |
| — | 0x04 | TASK_STATE_CANCELLATIONACKNOWLEDGED | int | Static+2 flags | 0 |
| — | 0x04 | TASK_STATE_FAULTED | int | Static+2 flags | 0 |
| — | 0x04 | TASK_STATE_CANCELED | int | Static+2 flags | 0 |
| — | 0x04 | TASK_STATE_WAITING_ON_CHILDREN | int | Static+2 flags | 0 |
| — | 0x04 | TASK_STATE_RAN_TO_COMPLETION | int | Static+2 flags | 0 |
| — | 0x04 | TASK_STATE_WAITINGFORACTIVATION | int | Static+2 flags | 0 |
| — | 0x04 | TASK_STATE_COMPLETION_RESERVED | int | Static+2 flags | 0 |
| — | 0x04 | TASK_STATE_THREAD_WAS_ABORTED | int | Static+2 flags | 0 |
| — | 0x04 | TASK_STATE_WAIT_COMPLETION_NOTIFICATION | int | Static+2 flags | 0 |
| — | 0x04 | TASK_STATE_COMPLETED_MASK | int | PrivateStatic+1 flags | 0 |
| — | 0x04 | CANCELLATION_REQUESTED | int | PrivateStatic+1 flags | 0 |
| 0x003C | 0x04 | padding / unreflected | |||
| 0x08 | m_continuationObject | object | Private | — | |
| 0x08 | s_taskCompletionSentinel | object | PrivateStatic+1 flags | — | |
| 0x01 | s_asyncDebuggingEnabled | bool | Static+1 flags | — | |
| 0x08 | m_contingentProperties | ContingentProperties | 1 flags | — | |
| 0x08 | s_taskCancelCallback | Action<System.Object> | PrivateStatic+1 flags | — | |
| — | 0x08 | t_currentTask | Task | Static+1 flags | — |
| — | 0x08 | t_stackGuard | StackGuard | PrivateStatic | — |
| 0x08 | s_createContingentProperties | Func<System.Threading.Tasks.Task.ContingentProperties> | PrivateStatic+1 flags | — | |
| 0x08 | <Factory>k__BackingField | TaskFactory | PrivateStatic+1 flags | — | |
| 0x08 | <CompletedTask>k__BackingField | Task | PrivateStatic+1 flags | — | |
| 0x08 | s_IsExceptionObservedByParentPredicate | Predicate<System.Threading.Tasks.Task> | PrivateStatic+1 flags | — | |
| 0x08 | s_ecCallback | ContextCallback | PrivateStatic | — | |
| 0x08 | s_IsTaskContinuationNullPredicate | Predicate<System.Object> | PrivateStatic+1 flags | — | |
| 0x08 | s_currentActiveTasks | Dictionary<System.Int32 | PrivateStatic+1 flags | — | |
| 0x08 | s_activeTasksLock | object | PrivateStatic+1 flags | — | |
Functions 128
| Signature | Flags | Native | Params |
|---|---|---|---|
| void .ctor(bool canceled, const TaskCreationOptions& creationOptions, const CancellationToken& ct) | 2 flags | 0x08 | |
| void .ctor() | 2 flags | 0x00 | |
| void .ctor(object state, const TaskCreationOptions& creationOptions, bool promiseStyle) | 2 flags | 0x08 | |
| void .ctor(Delegate action, object state, Task parent, const CancellationToken& cancellationToken, const TaskCreationOptions& creationOptions, const InternalTaskOptions& internalOptions, TaskScheduler scheduler) | 2 flags | 0x08 | |
| void TaskConstructorCore(Delegate action, object state, const CancellationToken& cancellationToken, const TaskCreationOptions& creationOptions, const InternalTaskOptions& internalOptions, TaskScheduler scheduler) | 1 flags | 0x08 | |
| void AssignCancellationToken(const CancellationToken& cancellationToken, Task antecedent, TaskContinuation continuation) | Private | 0x08 | |
| void TaskCancelCallback(object o) | PrivateStatic | 0x08 | |
| bool TrySetCanceled(const CancellationToken& tokenToRecord) | 1 flags | 0x08 | |
| bool TrySetCanceled(const CancellationToken& tokenToRecord, object cancellationException) | 1 flags | 0x08 | |
| bool TrySetException(object exceptionObject) | 1 flags | 0x08 | |
| TaskCreationOptions get_Options() | 2 flags | 0x04 | |
| TaskCreationOptions OptionsMethod(int flags) | Static+1 flags | 0x04 | |
| bool AtomicStateUpdate(int newBits, int illegalBits) | 1 flags | 0x04 | |
| bool AtomicStateUpdate(int newBits, int illegalBits, ref int& oldFlags) | 1 flags | 0x04 | |
| void SetNotificationForWaitCompletion(bool enabled) | 1 flags | 0x01 | |
| bool NotifyDebuggerOfWaitCompletionIfNecessary() | 1 flags | 0x01 | |
| bool get_IsWaitNotificationEnabledOrNotRanToCompletion() | 2 flags | 0x01 | |
| bool get_ShouldNotifyDebuggerOfWaitCompletion() | 4 flags | 0x01 | |
| bool get_IsWaitNotificationEnabled() | 2 flags | 0x01 | |
| void NotifyDebuggerOfWaitCompletion() | Private | 0x00 | |
| bool MarkStarted() | 1 flags | 0x01 | |
| void AddNewChild() | 1 flags | 0x00 | |
| void DisregardChild() | 1 flags | 0x00 | |
| Task InternalStartNew(Task creatingTask, Delegate action, object state, const CancellationToken& cancellationToken, TaskScheduler scheduler, const TaskCreationOptions& options, const InternalTaskOptions& internalOptions) | Static+1 flags | 0x08 | |
| int get_Id() | Public+1 flags | 0x04 | |
| Task get_InternalCurrent() | Static+2 flags | 0x08 | |
| Task InternalCurrentIfAttached(const TaskCreationOptions& creationOptions) | Static+1 flags | 0x08 | |
| StackGuard get_CurrentStackGuard() | Static+2 flags | 0x08 | |
| AggregateException get_Exception() | Public+1 flags | 0x08 | |
| TaskStatus get_Status() | Public+1 flags | 0x04 | |
| bool get_IsCanceled() | Public+1 flags | 0x01 | |
| bool get_IsCancellationRequested() | 2 flags | 0x01 | |
| ContingentProperties EnsureContingentPropertiesInitialized(bool needsProtection) | 1 flags | 0x08 | |
| ContingentProperties EnsureContingentPropertiesInitializedCore(bool needsProtection) | Private | 0x08 | |
| CancellationToken get_CancellationToken() | 2 flags | 0x08 | |
| bool get_IsCancellationAcknowledged() | 2 flags | 0x01 | |
| bool get_IsCompleted() | PublicFinal+3 flags | 0x01 | |
| bool IsCompletedMethod(int flags) | PrivateStatic | 0x04 | |
| bool get_IsCompletedSuccessfully() | Public+1 flags | 0x01 | |
| TaskCreationOptions get_CreationOptions() | Public+1 flags | 0x04 | |
| WaitHandle System.IAsyncResult.get_AsyncWaitHandle() | PrivateFinal+3 flags | 0x08 | |
| object get_AsyncState() | PublicFinal+3 flags | 0x08 | |
| bool System.IAsyncResult.get_CompletedSynchronously() | PrivateFinal+3 flags | 0x01 | |
| TaskScheduler get_ExecutingTaskScheduler() | 2 flags | 0x08 | |
| TaskFactory get_Factory() | PublicStatic+1 flags | 0x08 | |
| Task get_CompletedTask() | PublicStatic+1 flags | 0x08 | |
| ManualResetEventSlim get_CompletedEvent() | 2 flags | 0x08 | |
| bool get_ExceptionRecorded() | 2 flags | 0x01 | |
| bool get_IsFaulted() | Public+1 flags | 0x01 | |
| ExecutionContext get_CapturedContext() | 2 flags | 0x08 | |
| void set_CapturedContext(ExecutionContext value) | 2 flags | 0x08 | |
| void Dispose() | PublicFinal+2 flags | 0x00 | |
| void Dispose(bool disposing) | 3 flags | 0x01 | |
| void ScheduleAndStart(bool needsProtection) | 1 flags | 0x01 | |
| void AddException(object exceptionObject) | 1 flags | 0x08 | |
| void AddException(object exceptionObject, bool representsCancellation) | 1 flags | 0x08 | |
| AggregateException GetExceptions(bool includeTaskCanceledExceptions) | Private | 0x08 | |
| ReadOnlyCollection<System.Runtime.ExceptionServices.ExceptionDispatchInfo> GetExceptionDispatchInfos() | 1 flags | 0x08 | |
| ExceptionDispatchInfo GetCancellationExceptionDispatchInfo() | 1 flags | 0x08 | |
| void ThrowIfExceptional(bool includeTaskCanceledExceptions) | 1 flags | 0x01 | |
| void UpdateExceptionObservedStatus() | 1 flags | 0x00 | |
| bool get_IsExceptionObservedByParent() | 2 flags | 0x01 | |
| bool get_IsDelegateInvoked() | 2 flags | 0x01 | |
| void Finish(bool bUserDelegateExecuted) | 1 flags | 0x01 | |
| void FinishStageTwo() | 1 flags | 0x00 | |
| void FinishStageThree() | 1 flags | 0x00 | |
| void ProcessChildCompletion(Task childTask) | 1 flags | 0x08 | |
| void AddExceptionsFromChildren() | 1 flags | 0x00 | |
| void Execute() | Private | 0x00 | |
| void System.Threading.IThreadPoolWorkItem.ExecuteWorkItem() | PrivateFinal+2 flags | 0x00 | |
| bool ExecuteEntry(bool bPreventDoubleExecution) | 1 flags | 0x01 | |
| void ExecutionContextCallback(object obj) | PrivateStatic | 0x08 | |
| void InnerInvoke() | 3 flags | 0x00 | |
| void HandleException(Exception unhandledException) | Private | 0x08 | |
| TaskAwaiter GetAwaiter() | Public | 0x08 | |
| ConfiguredTaskAwaitable ConfigureAwait(bool continueOnCapturedContext) | Public | 0x10 | |
| void SetContinuationForAwait(Action continuationAction, bool continueOnCapturedContext, bool flowExecutionContext) | 1 flags | 0x08 | |
| YieldAwaitable Yield() | PublicStatic | 0x01 | |
| void Wait() | Public | 0x00 | |
| bool Wait(int millisecondsTimeout) | Public | 0x04 | |
| bool Wait(int millisecondsTimeout, const CancellationToken& cancellationToken) | Public | 0x08 | |
| bool WrappedTryRunInline() | Private | 0x01 | |
| bool InternalWait(int millisecondsTimeout, const CancellationToken& cancellationToken) | 1 flags | 0x08 | |
| bool SpinThenBlockingWait(int millisecondsTimeout, const CancellationToken& cancellationToken) | Private | 0x08 | |
| bool SpinWait(int millisecondsTimeout) | Private | 0x04 | |
| bool InternalCancel(bool bCancelNonExecutingOnly) | 1 flags | 0x01 | |
| void RecordInternalCancellationRequest() | 1 flags | 0x00 | |
| void RecordInternalCancellationRequest(const CancellationToken& tokenToRecord) | 1 flags | 0x08 | |
| void RecordInternalCancellationRequest(const CancellationToken& tokenToRecord, object cancellationException) | 1 flags | 0x08 | |
| void CancellationCleanupLogic() | 1 flags | 0x00 | |
| void SetCancellationAcknowledged() | Private | 0x00 | |
| void FinishContinuations() | 1 flags | 0x00 | |
| void LogFinishCompletionNotification() | Private | 0x00 | |
| Task ContinueWith(Action<System.Threading.Tasks.Task> continuationAction) | Public | 0x08 | |
| Task ContinueWith(Action<System.Threading.Tasks.Task> continuationAction, const CancellationToken& cancellationToken, const TaskContinuationOptions& continuationOptions, TaskScheduler scheduler) | Public | 0x08 | |
| Task ContinueWith(Action<System.Threading.Tasks.Task> continuationAction, TaskScheduler scheduler, const CancellationToken& cancellationToken, const TaskContinuationOptions& continuationOptions) | Private | 0x08 | |
| Task ContinueWith(Action<System.Threading.Tasks.Task continuationAction, object state, const CancellationToken& cancellationToken, const TaskContinuationOptions& continuationOptions, TaskScheduler scheduler) | Public | 0x08 | |
| Task ContinueWith(Action<System.Threading.Tasks.Task continuationAction, object state, TaskScheduler scheduler, const CancellationToken& cancellationToken, const TaskContinuationOptions& continuationOptions) | Private | 0x08 | |
| void CreationOptionsFromContinuationOptions(const TaskContinuationOptions& continuationOptions, ref TaskCreationOptions& creationOptions, ref InternalTaskOptions& internalOptions) | Static+1 flags | 0x04 | |
| void ContinueWithCore(Task continuationTask, TaskScheduler scheduler, const CancellationToken& cancellationToken, const TaskContinuationOptions& options) | 1 flags | 0x08 | |
| void AddCompletionAction(ITaskCompletionAction action) | 1 flags | 0x08 | |
| void AddCompletionAction(ITaskCompletionAction action, bool addBeforeOthers) | Private | 0x08 | |
| bool AddTaskContinuationComplex(object tc, bool addBeforeOthers) | Private | 0x08 | |
| bool AddTaskContinuation(object tc, bool addBeforeOthers) | Private | 0x08 | |
| void RemoveContinuation(object continuationObject) | 1 flags | 0x08 | |
| Task<TResult> FromResult(const uint8& result) | PublicStatic | — | 0x08 |
| Task FromException(Exception exception) | PublicStatic | 0x08 | |
| Task<TResult> FromException(Exception exception) | PublicStatic | — | 0x08 |
| Task FromCancellation(const CancellationToken& cancellationToken) | Static+1 flags | 0x08 | |
| Task FromCanceled(const CancellationToken& cancellationToken) | PublicStatic | 0x08 | |
| Task<TResult> FromCancellation(const CancellationToken& cancellationToken) | Static+1 flags | — | 0x08 |
| Task<TResult> FromCanceled(const CancellationToken& cancellationToken) | PublicStatic | — | 0x08 |
| Task<TResult> FromCancellation(OperationCanceledException exception) | Static+1 flags | — | 0x08 |
| Task Run(Action action) | PublicStatic | 0x08 | |
| Task<TResult> Run(Func<TResult> function) | PublicStatic | — | 0x08 |
| Task Run(Func<System.Threading.Tasks.Task> function) | PublicStatic | 0x08 | |
| Task Run(Func<System.Threading.Tasks.Task> function, const CancellationToken& cancellationToken) | PublicStatic | 0x08 | |
| Task<TResult> Run(Func<System.Threading.Tasks.Task<TResult>> function) | PublicStatic | — | 0x08 |
| Task<TResult> Run(Func<System.Threading.Tasks.Task<TResult>> function, const CancellationToken& cancellationToken) | PublicStatic | — | 0x08 |
| Task Delay(int millisecondsDelay) | PublicStatic | 0x08 | |
| Task Delay(int millisecondsDelay, const CancellationToken& cancellationToken) | PublicStatic | 0x08 | |
| Task<System.Threading.Tasks.Task> WhenAny(const Task[]& tasks) | PublicStatic | 0x08 | |
| Task<System.Threading.Tasks.Task> WhenAny(IEnumerable<System.Threading.Tasks.Task> tasks) | PublicStatic | 0x08 | |
| bool AddToActiveTasks(Task task) | Static+1 flags | 0x08 | |
| void RemoveFromActiveTasks(int taskId) | Static+1 flags | 0x04 | |
| void MarkAborted(ThreadAbortException e) | PublicFinal+2 flags | 0x08 | |
| void ExecuteWithThreadLocal(ref Task& currentTaskSlot) | Private | 0x08 | |
| void .cctor() | PrivateStatic+1 flags | 0x00 |
Subclasses 72
ContinuationTaskFromResultTask`1ContinuationTaskFromResultTask`1ContinuationTaskFromResultTask`1ContinuationTaskFromResultTask`1ContinuationTaskFromResultTask`1ContinuationTaskFromResultTask`1ContinuationTaskFromResultTask`1ContinuationTaskFromResultTask`1ContinuationTaskFromResultTask`1ContinuationTaskFromResultTask`1ContinuationTaskFromResultTask`1ContinuationTaskFromResultTask`1ContinuationTaskFromResultTask`1ContinuationTaskFromResultTask`1ContinuationTaskFromResultTask`1ContinuationTaskFromResultTask`1ContinuationTaskFromResultTask`1ContinuationTaskFromResultTask`1ContinuationTaskFromResultTask`1ContinuationTaskFromResultTask`1ContinuationTaskFromResultTask`1ContinuationTaskFromResultTask`1ContinuationTaskFromResultTask`1ContinuationTaskFromResultTask`1ContinuationTaskFromResultTask`1ContinuationTaskFromResultTask`1ContinuationTaskFromResultTask`1ContinuationTaskFromResultTask`1ContinuationTaskFromResultTask`1ContinuationTaskFromResultTask`1ContinuationTaskFromResultTask`1ContinuationTaskFromTaskTask`1Task`1Task`1Task`1Task`1Task`1Task`1Task`1Task`1Task`1Task`1Task`1Task`1Task`1Task`1Task`1Task`1Task`1Task`1Task`1Task`1Task`1Task`1Task`1Task`1Task`1Task`1Task`1+12 more
Used by 157
types with a member, parameter or interface of this type<>c<>c<>c<>c__DisplayClass11_0<>c__DisplayClass355_0<>c__DisplayClass5_0<FinishWriteAsync>d__57<ReadAllAsync>d__48<WaitAsync>d__46<WriteChunkTrailer>d__40Action`1Action`2ArraySortHelper`1AsyncHelperAsyncManualResetEventAsyncMethodBuilderCoreAsyncProtocolRequestAsyncTaskMethodBuilderAsyncVoidMethodBuilderAwaitTaskContinuationChunkedMemoryStreamClientWebSocketComparer`1CompleteOnInvokePromiseCompletionActionInvokerConfiguredTaskAwaitableConfiguredTaskAwaiterConfiguredTaskAwaiterContentDecodeStreamContinuationTaskFromTaskContinuationWrapperCryptoStreamDebuggerSupportDelegatedStreamDelegatingStreamDictionary`2DOTweenModuleUnityVersionEntryEntryEnumeratorEnumeratorEqualityComparer`1FileStreamForceAsyncAwaiterFunc`1Func`2Func`2GZipStreamICollection`1IDictionary`2IEnumerator`1IList`1IReadOnlyDictionary`2IReadOnlyList`1ITaskCompletionActionKeyValuePair`2List`1LowLevelDictionary`2LowLevelList`1ManagedWebSocketMemoryStreamMobileAuthenticatedStreamMonoChunkStreamNetworkStreamNetworkStreamWrapperNullStreamPhotonClientWebSocketPredicate`1ReadOnlyCollection`1ReadWriteTaskSemaphoreSlimServicePointSchedulerSetOnInvokeMresSocketSslStreamStandardTaskContinuationSteamScriptCCStreamStreamReaderStreamWriter+77 more