Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
System.Threading.Tasks.TaskFactory< TResult > Class Template Reference

Classes

class  CompleteOnCountdownPromise
 
class  CompleteOnInvokePromise
 
class  FromAsyncTrimPromise
 

Public Member Functions

 TaskFactory ()
 
 TaskFactory (CancellationToken cancellationToken)
 
 TaskFactory (TaskScheduler? scheduler)
 
 TaskFactory (TaskCreationOptions creationOptions, TaskContinuationOptions continuationOptions)
 
 TaskFactory (CancellationToken cancellationToken, TaskCreationOptions creationOptions, TaskContinuationOptions continuationOptions, TaskScheduler? scheduler)
 
Task< TResultStartNew (Func< TResult > function)
 
Task< TResultStartNew (Func< TResult > function, CancellationToken cancellationToken)
 
Task< TResultStartNew (Func< TResult > function, TaskCreationOptions creationOptions)
 
Task< TResultStartNew (Func< TResult > function, CancellationToken cancellationToken, TaskCreationOptions creationOptions, TaskScheduler scheduler)
 
Task< TResultStartNew (Func< object?, TResult > function, object? state)
 
Task< TResultStartNew (Func< object?, TResult > function, object? state, CancellationToken cancellationToken)
 
Task< TResultStartNew (Func< object?, TResult > function, object? state, TaskCreationOptions creationOptions)
 
Task< TResultStartNew (Func< object?, TResult > function, object? state, CancellationToken cancellationToken, TaskCreationOptions creationOptions, TaskScheduler scheduler)
 
Task< TResultFromAsync (IAsyncResult asyncResult, Func< IAsyncResult, TResult > endMethod)
 
Task< TResultFromAsync (IAsyncResult asyncResult, Func< IAsyncResult, TResult > endMethod, TaskCreationOptions creationOptions)
 
Task< TResultFromAsync (IAsyncResult asyncResult, Func< IAsyncResult, TResult > endMethod, TaskCreationOptions creationOptions, TaskScheduler scheduler)
 
Task< TResultFromAsync (Func< AsyncCallback, object?, IAsyncResult > beginMethod, Func< IAsyncResult, TResult > endMethod, object? state)
 
Task< TResultFromAsync (Func< AsyncCallback, object?, IAsyncResult > beginMethod, Func< IAsyncResult, TResult > endMethod, object? state, TaskCreationOptions creationOptions)
 
Task< TResultFromAsync< TArg1 > (Func< TArg1, AsyncCallback, object?, IAsyncResult > beginMethod, Func< IAsyncResult, TResult > endMethod, TArg1 arg1, object? state)
 
Task< TResultFromAsync< TArg1 > (Func< TArg1, AsyncCallback, object?, IAsyncResult > beginMethod, Func< IAsyncResult, TResult > endMethod, TArg1 arg1, object? state, TaskCreationOptions creationOptions)
 
Task< TResultFromAsync< TArg1, TArg2 > (Func< TArg1, TArg2, AsyncCallback, object?, IAsyncResult > beginMethod, Func< IAsyncResult, TResult > endMethod, TArg1 arg1, TArg2 arg2, object? state)
 
Task< TResultFromAsync< TArg1, TArg2 > (Func< TArg1, TArg2, AsyncCallback, object?, IAsyncResult > beginMethod, Func< IAsyncResult, TResult > endMethod, TArg1 arg1, TArg2 arg2, object? state, TaskCreationOptions creationOptions)
 
Task< TResultFromAsync< TArg1, TArg2, TArg3 > (Func< TArg1, TArg2, TArg3, AsyncCallback, object?, IAsyncResult > beginMethod, Func< IAsyncResult, TResult > endMethod, TArg1 arg1, TArg2 arg2, TArg3 arg3, object? state)
 
Task< TResultFromAsync< TArg1, TArg2, TArg3 > (Func< TArg1, TArg2, TArg3, AsyncCallback, object?, IAsyncResult > beginMethod, Func< IAsyncResult, TResult > endMethod, TArg1 arg1, TArg2 arg2, TArg3 arg3, object? state, TaskCreationOptions creationOptions)
 
Task< TResultContinueWhenAll (Task[] tasks, Func< Task[], TResult > continuationFunction)
 
Task< TResultContinueWhenAll (Task[] tasks, Func< Task[], TResult > continuationFunction, CancellationToken cancellationToken)
 
Task< TResultContinueWhenAll (Task[] tasks, Func< Task[], TResult > continuationFunction, TaskContinuationOptions continuationOptions)
 
Task< TResultContinueWhenAll (Task[] tasks, Func< Task[], TResult > continuationFunction, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler)
 
Task< TResultContinueWhenAll< TAntecedentResult > (Task< TAntecedentResult >[] tasks, Func< Task< TAntecedentResult >[], TResult > continuationFunction)
 
Task< TResultContinueWhenAll< TAntecedentResult > (Task< TAntecedentResult >[] tasks, Func< Task< TAntecedentResult >[], TResult > continuationFunction, CancellationToken cancellationToken)
 
Task< TResultContinueWhenAll< TAntecedentResult > (Task< TAntecedentResult >[] tasks, Func< Task< TAntecedentResult >[], TResult > continuationFunction, TaskContinuationOptions continuationOptions)
 
Task< TResultContinueWhenAll< TAntecedentResult > (Task< TAntecedentResult >[] tasks, Func< Task< TAntecedentResult >[], TResult > continuationFunction, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler)
 
Task< TResultContinueWhenAny (Task[] tasks, Func< Task, TResult > continuationFunction)
 
Task< TResultContinueWhenAny (Task[] tasks, Func< Task, TResult > continuationFunction, CancellationToken cancellationToken)
 
Task< TResultContinueWhenAny (Task[] tasks, Func< Task, TResult > continuationFunction, TaskContinuationOptions continuationOptions)
 
Task< TResultContinueWhenAny (Task[] tasks, Func< Task, TResult > continuationFunction, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler)
 
Task< TResultContinueWhenAny< TAntecedentResult > (Task< TAntecedentResult >[] tasks, Func< Task< TAntecedentResult >, TResult > continuationFunction)
 
Task< TResultContinueWhenAny< TAntecedentResult > (Task< TAntecedentResult >[] tasks, Func< Task< TAntecedentResult >, TResult > continuationFunction, CancellationToken cancellationToken)
 
Task< TResultContinueWhenAny< TAntecedentResult > (Task< TAntecedentResult >[] tasks, Func< Task< TAntecedentResult >, TResult > continuationFunction, TaskContinuationOptions continuationOptions)
 
Task< TResultContinueWhenAny< TAntecedentResult > (Task< TAntecedentResult >[] tasks, Func< Task< TAntecedentResult >, TResult > continuationFunction, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler)
 
 TaskFactory ()
 
 TaskFactory (CancellationToken cancellationToken)
 
 TaskFactory (TaskScheduler? scheduler)
 
 TaskFactory (TaskCreationOptions creationOptions, TaskContinuationOptions continuationOptions)
 
 TaskFactory (CancellationToken cancellationToken, TaskCreationOptions creationOptions, TaskContinuationOptions continuationOptions, TaskScheduler? scheduler)
 
Task StartNew (Action action)
 
Task StartNew (Action action, CancellationToken cancellationToken)
 
Task StartNew (Action action, TaskCreationOptions creationOptions)
 
Task StartNew (Action action, CancellationToken cancellationToken, TaskCreationOptions creationOptions, TaskScheduler scheduler)
 
Task StartNew (Action< object?> action, object? state)
 
Task StartNew (Action< object?> action, object? state, CancellationToken cancellationToken)
 
Task StartNew (Action< object?> action, object? state, TaskCreationOptions creationOptions)
 
Task StartNew (Action< object?> action, object? state, CancellationToken cancellationToken, TaskCreationOptions creationOptions, TaskScheduler scheduler)
 
Task< TResultStartNew< TResult > (Func< TResult > function)
 
Task< TResultStartNew< TResult > (Func< TResult > function, CancellationToken cancellationToken)
 
Task< TResultStartNew< TResult > (Func< TResult > function, TaskCreationOptions creationOptions)
 
Task< TResultStartNew< TResult > (Func< TResult > function, CancellationToken cancellationToken, TaskCreationOptions creationOptions, TaskScheduler scheduler)
 
Task< TResultStartNew< TResult > (Func< object?, TResult > function, object? state)
 
Task< TResultStartNew< TResult > (Func< object?, TResult > function, object? state, CancellationToken cancellationToken)
 
Task< TResultStartNew< TResult > (Func< object?, TResult > function, object? state, TaskCreationOptions creationOptions)
 
Task< TResultStartNew< TResult > (Func< object?, TResult > function, object? state, CancellationToken cancellationToken, TaskCreationOptions creationOptions, TaskScheduler scheduler)
 
Task FromAsync (IAsyncResult asyncResult, Action< IAsyncResult > endMethod)
 
Task FromAsync (IAsyncResult asyncResult, Action< IAsyncResult > endMethod, TaskCreationOptions creationOptions)
 
Task FromAsync (IAsyncResult asyncResult, Action< IAsyncResult > endMethod, TaskCreationOptions creationOptions, TaskScheduler scheduler)
 
Task FromAsync (Func< AsyncCallback, object?, IAsyncResult > beginMethod, Action< IAsyncResult > endMethod, object? state)
 
Task FromAsync (Func< AsyncCallback, object?, IAsyncResult > beginMethod, Action< IAsyncResult > endMethod, object? state, TaskCreationOptions creationOptions)
 
Task FromAsync< TArg1 > (Func< TArg1, AsyncCallback, object?, IAsyncResult > beginMethod, Action< IAsyncResult > endMethod, TArg1 arg1, object? state)
 
Task FromAsync< TArg1 > (Func< TArg1, AsyncCallback, object?, IAsyncResult > beginMethod, Action< IAsyncResult > endMethod, TArg1 arg1, object? state, TaskCreationOptions creationOptions)
 
Task FromAsync< TArg1, TArg2 > (Func< TArg1, TArg2, AsyncCallback, object?, IAsyncResult > beginMethod, Action< IAsyncResult > endMethod, TArg1 arg1, TArg2 arg2, object? state)
 
Task FromAsync< TArg1, TArg2 > (Func< TArg1, TArg2, AsyncCallback, object?, IAsyncResult > beginMethod, Action< IAsyncResult > endMethod, TArg1 arg1, TArg2 arg2, object? state, TaskCreationOptions creationOptions)
 
Task FromAsync< TArg1, TArg2, TArg3 > (Func< TArg1, TArg2, TArg3, AsyncCallback, object?, IAsyncResult > beginMethod, Action< IAsyncResult > endMethod, TArg1 arg1, TArg2 arg2, TArg3 arg3, object? state)
 
Task FromAsync< TArg1, TArg2, TArg3 > (Func< TArg1, TArg2, TArg3, AsyncCallback, object?, IAsyncResult > beginMethod, Action< IAsyncResult > endMethod, TArg1 arg1, TArg2 arg2, TArg3 arg3, object? state, TaskCreationOptions creationOptions)
 
Task< TResultFromAsync< TResult > (IAsyncResult asyncResult, Func< IAsyncResult, TResult > endMethod)
 
Task< TResultFromAsync< TResult > (IAsyncResult asyncResult, Func< IAsyncResult, TResult > endMethod, TaskCreationOptions creationOptions)
 
Task< TResultFromAsync< TResult > (IAsyncResult asyncResult, Func< IAsyncResult, TResult > endMethod, TaskCreationOptions creationOptions, TaskScheduler scheduler)
 
Task< TResultFromAsync< TResult > (Func< AsyncCallback, object?, IAsyncResult > beginMethod, Func< IAsyncResult, TResult > endMethod, object? state)
 
Task< TResultFromAsync< TResult > (Func< AsyncCallback, object?, IAsyncResult > beginMethod, Func< IAsyncResult, TResult > endMethod, object? state, TaskCreationOptions creationOptions)
 
Task< TResultFromAsync< TArg1, TResult > (Func< TArg1, AsyncCallback, object?, IAsyncResult > beginMethod, Func< IAsyncResult, TResult > endMethod, TArg1 arg1, object? state)
 
Task< TResultFromAsync< TArg1, TResult > (Func< TArg1, AsyncCallback, object?, IAsyncResult > beginMethod, Func< IAsyncResult, TResult > endMethod, TArg1 arg1, object? state, TaskCreationOptions creationOptions)
 
Task< TResultFromAsync< TArg1, TArg2, TResult > (Func< TArg1, TArg2, AsyncCallback, object?, IAsyncResult > beginMethod, Func< IAsyncResult, TResult > endMethod, TArg1 arg1, TArg2 arg2, object? state)
 
Task< TResultFromAsync< TArg1, TArg2, TResult > (Func< TArg1, TArg2, AsyncCallback, object?, IAsyncResult > beginMethod, Func< IAsyncResult, TResult > endMethod, TArg1 arg1, TArg2 arg2, object? state, TaskCreationOptions creationOptions)
 
Task< TResultFromAsync< TArg1, TArg2, TArg3, TResult > (Func< TArg1, TArg2, TArg3, AsyncCallback, object?, IAsyncResult > beginMethod, Func< IAsyncResult, TResult > endMethod, TArg1 arg1, TArg2 arg2, TArg3 arg3, object? state)
 
Task< TResultFromAsync< TArg1, TArg2, TArg3, TResult > (Func< TArg1, TArg2, TArg3, AsyncCallback, object?, IAsyncResult > beginMethod, Func< IAsyncResult, TResult > endMethod, TArg1 arg1, TArg2 arg2, TArg3 arg3, object? state, TaskCreationOptions creationOptions)
 
Task ContinueWhenAll (Task[] tasks, Action< Task[]> continuationAction)
 
Task ContinueWhenAll (Task[] tasks, Action< Task[]> continuationAction, CancellationToken cancellationToken)
 
Task ContinueWhenAll (Task[] tasks, Action< Task[]> continuationAction, TaskContinuationOptions continuationOptions)
 
Task ContinueWhenAll (Task[] tasks, Action< Task[]> continuationAction, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler)
 
Task ContinueWhenAll< TAntecedentResult > (Task< TAntecedentResult >[] tasks, Action< Task< TAntecedentResult >[]> continuationAction)
 
Task ContinueWhenAll< TAntecedentResult > (Task< TAntecedentResult >[] tasks, Action< Task< TAntecedentResult >[]> continuationAction, CancellationToken cancellationToken)
 
Task ContinueWhenAll< TAntecedentResult > (Task< TAntecedentResult >[] tasks, Action< Task< TAntecedentResult >[]> continuationAction, TaskContinuationOptions continuationOptions)
 
Task ContinueWhenAll< TAntecedentResult > (Task< TAntecedentResult >[] tasks, Action< Task< TAntecedentResult >[]> continuationAction, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler)
 
Task< TResultContinueWhenAll< TResult > (Task[] tasks, Func< Task[], TResult > continuationFunction)
 
Task< TResultContinueWhenAll< TResult > (Task[] tasks, Func< Task[], TResult > continuationFunction, CancellationToken cancellationToken)
 
Task< TResultContinueWhenAll< TResult > (Task[] tasks, Func< Task[], TResult > continuationFunction, TaskContinuationOptions continuationOptions)
 
Task< TResultContinueWhenAll< TResult > (Task[] tasks, Func< Task[], TResult > continuationFunction, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler)
 
Task< TResultContinueWhenAll< TAntecedentResult, TResult > (Task< TAntecedentResult >[] tasks, Func< Task< TAntecedentResult >[], TResult > continuationFunction)
 
Task< TResultContinueWhenAll< TAntecedentResult, TResult > (Task< TAntecedentResult >[] tasks, Func< Task< TAntecedentResult >[], TResult > continuationFunction, CancellationToken cancellationToken)
 
Task< TResultContinueWhenAll< TAntecedentResult, TResult > (Task< TAntecedentResult >[] tasks, Func< Task< TAntecedentResult >[], TResult > continuationFunction, TaskContinuationOptions continuationOptions)
 
Task< TResultContinueWhenAll< TAntecedentResult, TResult > (Task< TAntecedentResult >[] tasks, Func< Task< TAntecedentResult >[], TResult > continuationFunction, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler)
 
Task ContinueWhenAny (Task[] tasks, Action< Task > continuationAction)
 
Task ContinueWhenAny (Task[] tasks, Action< Task > continuationAction, CancellationToken cancellationToken)
 
Task ContinueWhenAny (Task[] tasks, Action< Task > continuationAction, TaskContinuationOptions continuationOptions)
 
Task ContinueWhenAny (Task[] tasks, Action< Task > continuationAction, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler)
 
Task< TResultContinueWhenAny< TResult > (Task[] tasks, Func< Task, TResult > continuationFunction)
 
Task< TResultContinueWhenAny< TResult > (Task[] tasks, Func< Task, TResult > continuationFunction, CancellationToken cancellationToken)
 
Task< TResultContinueWhenAny< TResult > (Task[] tasks, Func< Task, TResult > continuationFunction, TaskContinuationOptions continuationOptions)
 
Task< TResultContinueWhenAny< TResult > (Task[] tasks, Func< Task, TResult > continuationFunction, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler)
 
Task< TResultContinueWhenAny< TAntecedentResult, TResult > (Task< TAntecedentResult >[] tasks, Func< Task< TAntecedentResult >, TResult > continuationFunction)
 
Task< TResultContinueWhenAny< TAntecedentResult, TResult > (Task< TAntecedentResult >[] tasks, Func< Task< TAntecedentResult >, TResult > continuationFunction, CancellationToken cancellationToken)
 
Task< TResultContinueWhenAny< TAntecedentResult, TResult > (Task< TAntecedentResult >[] tasks, Func< Task< TAntecedentResult >, TResult > continuationFunction, TaskContinuationOptions continuationOptions)
 
Task< TResultContinueWhenAny< TAntecedentResult, TResult > (Task< TAntecedentResult >[] tasks, Func< Task< TAntecedentResult >, TResult > continuationFunction, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler)
 
Task ContinueWhenAny< TAntecedentResult > (Task< TAntecedentResult >[] tasks, Action< Task< TAntecedentResult > > continuationAction)
 
Task ContinueWhenAny< TAntecedentResult > (Task< TAntecedentResult >[] tasks, Action< Task< TAntecedentResult > > continuationAction, CancellationToken cancellationToken)
 
Task ContinueWhenAny< TAntecedentResult > (Task< TAntecedentResult >[] tasks, Action< Task< TAntecedentResult > > continuationAction, TaskContinuationOptions continuationOptions)
 
Task ContinueWhenAny< TAntecedentResult > (Task< TAntecedentResult >[] tasks, Action< Task< TAntecedentResult > > continuationAction, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler)
 

Static Package Functions

static Task< TResultFromAsyncImpl (IAsyncResult asyncResult, Func< IAsyncResult, TResult > endFunction, Action< IAsyncResult > endAction, TaskCreationOptions creationOptions, TaskScheduler scheduler)
 
static Task< TResultFromAsyncImpl (Func< AsyncCallback, object, IAsyncResult > beginMethod, Func< IAsyncResult, TResult > endFunction, Action< IAsyncResult > endAction, object state, TaskCreationOptions creationOptions)
 
static Task< TResultFromAsyncImpl< TArg1 > (Func< TArg1, AsyncCallback, object, IAsyncResult > beginMethod, Func< IAsyncResult, TResult > endFunction, Action< IAsyncResult > endAction, TArg1 arg1, object state, TaskCreationOptions creationOptions)
 
static Task< TResultFromAsyncImpl< TArg1, TArg2 > (Func< TArg1, TArg2, AsyncCallback, object, IAsyncResult > beginMethod, Func< IAsyncResult, TResult > endFunction, Action< IAsyncResult > endAction, TArg1 arg1, TArg2 arg2, object state, TaskCreationOptions creationOptions)
 
static Task< TResultFromAsyncImpl< TArg1, TArg2, TArg3 > (Func< TArg1, TArg2, TArg3, AsyncCallback, object, IAsyncResult > beginMethod, Func< IAsyncResult, TResult > endFunction, Action< IAsyncResult > endAction, TArg1 arg1, TArg2 arg2, TArg3 arg3, object state, TaskCreationOptions creationOptions)
 
static Task< TResultFromAsyncTrim< TInstance, TArgs > (TInstance thisRef, TArgs args, Func< TInstance, TArgs, AsyncCallback, object, IAsyncResult > beginMethod, Func< TInstance, IAsyncResult, TResult > endMethod)
 
static Task< TResultContinueWhenAllImpl< TAntecedentResult > (Task< TAntecedentResult >[] tasks, Func< Task< TAntecedentResult >[], TResult > continuationFunction, Action< Task< TAntecedentResult >[]> continuationAction, TaskContinuationOptions continuationOptions, CancellationToken cancellationToken, TaskScheduler scheduler)
 
static Task< TResultContinueWhenAllImpl (Task[] tasks, Func< Task[], TResult > continuationFunction, Action< Task[]> continuationAction, TaskContinuationOptions continuationOptions, CancellationToken cancellationToken, TaskScheduler scheduler)
 
static Task< TResultContinueWhenAnyImpl (Task[] tasks, Func< Task, TResult > continuationFunction, Action< Task > continuationAction, TaskContinuationOptions continuationOptions, CancellationToken cancellationToken, TaskScheduler scheduler)
 
static Task< TResultContinueWhenAnyImpl< TAntecedentResult > (Task< TAntecedentResult >[] tasks, Func< Task< TAntecedentResult >, TResult > continuationFunction, Action< Task< TAntecedentResult > > continuationAction, TaskContinuationOptions continuationOptions, CancellationToken cancellationToken, TaskScheduler scheduler)
 
static void CheckCreationOptions (TaskCreationOptions creationOptions)
 
static void CheckFromAsyncOptions (TaskCreationOptions creationOptions, bool hasBeginMethod)
 
static Task< Task[]> CommonCWAllLogic (Task[] tasksCopy)
 
static Task< Task< T >[]> CommonCWAllLogic< T > (Task< T >[] tasksCopy)
 
static Task< TaskCommonCWAnyLogic (IList< Task > tasks, bool isSyncBlocking=false)
 
static void CommonCWAnyLogicCleanup (Task< Task > continuation)
 
static Task[] CheckMultiContinuationTasksAndCopy (Task[] tasks)
 
static Task< TResult >[] CheckMultiContinuationTasksAndCopy< TResult > (Task< TResult >[] tasks)
 
static void CheckMultiTaskContinuationOptions (TaskContinuationOptions continuationOptions)
 

Properties

TaskScheduler DefaultScheduler [get]
 
CancellationToken CancellationToken [get]
 
TaskSchedulerScheduler [get]
 
TaskCreationOptions CreationOptions [get]
 
TaskContinuationOptions ContinuationOptions [get]
 

Private Member Functions

TaskScheduler GetDefaultScheduler (Task currTask)
 
TaskScheduler GetDefaultScheduler (Task currTask)
 

Static Private Member Functions

static void FromAsyncCoreLogic (IAsyncResult iar, Func< IAsyncResult, TResult > endFunction, Action< IAsyncResult > endAction, Task< TResult > promise, bool requiresSynchronization)
 
static Task< TResultCreateCanceledTask (TaskContinuationOptions continuationOptions, CancellationToken ct)
 

Private Attributes

readonly CancellationToken m_defaultCancellationToken
 
readonly TaskScheduler m_defaultScheduler
 
readonly TaskCreationOptions m_defaultCreationOptions
 
readonly TaskContinuationOptions m_defaultContinuationOptions
 

Detailed Description

Definition at line 5 of file TaskFactory.cs.


The documentation for this class was generated from the following file: