The Task<(Of <(<'T>)>)> type exposes the following members.

Constructors

  NameDescription
Public methodTask<(Of <(<'T>)>)>(Action)
Initializes a new instance of the Task<(Of <(<'T>)>)> class
Public methodTask<(Of <(<'T>)>)>(IEnumerator)
Initializes a new instance of the Task<(Of <(<'T>)>)> class
Public methodTask<(Of <(<'T>)>)>(Func<(Of <<'(T>)>>))
Initializes a new instance of the Task<(Of <(<'T>)>)> class
Public methodTask<(Of <(<'T>)>)>(Action<(Of <<'(Task>)>>))
Initializes a new instance of the Task<(Of <(<'T>)>)> class
Public methodTask<(Of <(<'T>)>)>(Func<(Of <<'(Task, T>)>>))
Initializes a new instance of the Task<(Of <(<'T>)>)> class
Public methodTask<(Of <(<'T>)>)>(Object, String, array<Object>[]()[][])
Initializes a new instance of the Task<(Of <(<'T>)>)> class
Public methodTask<(Of <(<'T>)>)>(Type, String, array<Object>[]()[][])
Initializes a new instance of the Task<(Of <(<'T>)>)> class

Methods

  NameDescription
Public methodAbort
Notifies the task to abort and sets the task state to failed. The task needs to check ShouldAbort if the task should abort.
(Inherited from Task.)
Public methodAbortWait
Notifies the task to abort and sets the task state to failed. The task needs to check ShouldAbort if the task should abort. This method will wait until the task has been aborted/ended.
(Inherited from Task.)
Public methodAbortWaitForSeconds
Notifies the task to abort and sets the task state to failed. The task needs to check ShouldAbort if the task should abort. This method will wait until the task has been aborted/ended or the given timeout has been reached.
(Inherited from Task.)
Public methodDispose
Disposes this task and waits for completion if its still running.
(Inherited from Task.)
Protected methodDo (Overrides Task..::..Do()()()().)
Protected methodFinalize (Inherited from Task.)
Public methodRun()()()()
Public methodRun(DispatcherBase)
Public methodWait<(Of <<'(TResult>)>>) (Overrides Task..::..Wait()()()().)
Public methodWaitForSeconds<(Of <<'(TResult>)>>)(Single) (Overrides Task..::..WaitForSeconds(Single).)
Public methodWaitForSeconds<(Of <<'(TResult>)>>)(Single, TResult)
Blocks the calling thread until the task has been ended and returns the return value of the task as the given type. Use this method only for Tasks with return values (functions)!
(Inherited from Task.)
Public methodWaitForSeconds<(Of <<'(TResult>)>>)(Single, TResult) (Overrides Task..::..WaitForSeconds<(Of <<'(TResult>)>>)(Single, TResult).)

Extension Methods

  NameDescription
Public Extension MethodAs<(Of <<'(T>)>>)
Converts this Task.
(Defined by TaskExtension.)
Public Extension MethodAwait(Task)Overloaded.
Starts this Task when the other Task ended successfully.
(Defined by TaskExtension.)
Public Extension MethodAwait(Task, DispatcherBase)Overloaded.
Starts this Task when the other Task ended successfully.
(Defined by TaskExtension.)
Public Extension MethodOnResult(Action<(Of <<'(Object>)>>))Overloaded.
Invokes the given action with the set result of the task when the task succeeded.
(Defined by TaskExtension.)
Public Extension MethodOnResult(Action<(Of <<'(Object>)>>), DispatcherBase)Overloaded.
Invokes the given action with the set result of the task when the task succeeded.
(Defined by TaskExtension.)
Public Extension MethodOnResult<(Of <<'(T>)>>)(Action<(Of <<'(T>)>>))Overloaded.
Invokes the given action with the set result of the task when the task succeeded.
(Defined by TaskExtension.)
Public Extension MethodOnResult<(Of <<'(T>)>>)(Action<(Of <<'(T>)>>))Overloaded.
Invokes the given action with the set result of the task when the task succeeded.
(Defined by TaskExtension.)
Public Extension MethodOnResult<(Of <<'(T>)>>)(Action<(Of <<'(T>)>>), DispatcherBase)Overloaded.
Invokes the given action with the set result of the task when the task succeeded.
(Defined by TaskExtension.)
Public Extension MethodOnResult<(Of <<'(T>)>>)(Action<(Of <<'(T>)>>), DispatcherBase)Overloaded.
Invokes the given action with the set result of the task when the task succeeded.
(Defined by TaskExtension.)
Public Extension MethodRunAsync(String, array<Object>[]()[][])Overloaded.
Starts the given Method as async Task on the given TaskDistributor.
(Defined by ObjectExtension.)
Public Extension MethodRunAsync(String, TaskDistributor, array<Object>[]()[][])Overloaded.
Starts the given Method as async Task on the given TaskDistributor.
(Defined by ObjectExtension.)
Public Extension MethodRunAsync<(Of <<'(T>)>>)(String, array<Object>[]()[][])Overloaded.
Starts the given Method as async Task on the given TaskDistributor.
(Defined by ObjectExtension.)
Public Extension MethodRunAsync<(Of <<'(T>)>>)(String, TaskDistributor, array<Object>[]()[][])Overloaded.
Starts the given Method as async Task on the given TaskDistributor.
(Defined by ObjectExtension.)
Public Extension MethodThen(Task)Overloaded.
Starts the given Task when this Task ended successfully.
(Defined by TaskExtension.)
Public Extension MethodThen(Task, DispatcherBase)Overloaded.
Starts the given Task when this Task ended successfully.
(Defined by TaskExtension.)
Public Extension MethodWhenEnded(Action)Overloaded.
The given Action will be performed when the task ends.
(Defined by TaskExtension.)
Public Extension MethodWhenEnded(Action<(Of <<'(Task>)>>))Overloaded.
The given Action will be performed when the task ends.
(Defined by TaskExtension.)
Public Extension MethodWhenEnded(Action<(Of <<'(Task>)>>), DispatcherBase)Overloaded.
The given Action will be performed when the task ends.
(Defined by TaskExtension.)
Public Extension MethodWhenEnded<(Of <<'(T>)>>)(Action)Overloaded.
The given Action will be performed when the task ends.
(Defined by TaskExtension.)
Public Extension MethodWhenEnded<(Of <<'(T>)>>)(Action<(Of <<'(Task<(Of <<'(T>)>>)>)>>))Overloaded.
The given Action will be performed when the task ends.
(Defined by TaskExtension.)
Public Extension MethodWhenEnded<(Of <<'(T>)>>)(Action<(Of <<'(Task<(Of <<'(T>)>>)>)>>), DispatcherBase)Overloaded.
The given Action will be performed when the task ends.
(Defined by TaskExtension.)
Public Extension MethodWhenFailed(Action)Overloaded.
The given Action will be performed when the task fails.
(Defined by TaskExtension.)
Public Extension MethodWhenFailed(Action<(Of <<'(Task>)>>))Overloaded.
The given Action will be performed when the task fails.
(Defined by TaskExtension.)
Public Extension MethodWhenFailed(Action<(Of <<'(Task>)>>), DispatcherBase)Overloaded.
The given Action will be performed when the task fails.
(Defined by TaskExtension.)
Public Extension MethodWhenFailed<(Of <<'(T>)>>)(Action)Overloaded.
The given Action will be performed when the task fails.
(Defined by TaskExtension.)
Public Extension MethodWhenFailed<(Of <<'(T>)>>)(Action<(Of <<'(Task<(Of <<'(T>)>>)>)>>))Overloaded.
The given Action will be performed when the task fails.
(Defined by TaskExtension.)
Public Extension MethodWhenFailed<(Of <<'(T>)>>)(Action<(Of <<'(Task<(Of <<'(T>)>>)>)>>), DispatcherBase)Overloaded.
The given Action will be performed when the task fails.
(Defined by TaskExtension.)
Public Extension MethodWhenSucceeded(Action)Overloaded.
The given Action will be performed when the task succeeds.
(Defined by TaskExtension.)
Public Extension MethodWhenSucceeded(Action<(Of <<'(Task>)>>))Overloaded.
The given Action will be performed when the task succeeds.
(Defined by TaskExtension.)
Public Extension MethodWhenSucceeded(Action<(Of <<'(Task>)>>), DispatcherBase)Overloaded.
The given Action will be performed when the task succeeds.
(Defined by TaskExtension.)
Public Extension MethodWhenSucceeded<(Of <<'(T>)>>)(Action)Overloaded.
The given Action will be performed when the task succeeds.
(Defined by TaskExtension.)
Public Extension MethodWhenSucceeded<(Of <<'(T>)>>)(Action<(Of <<'(Task<(Of <<'(T>)>>)>)>>))Overloaded.
The given Action will be performed when the task succeeds.
(Defined by TaskExtension.)
Public Extension MethodWhenSucceeded<(Of <<'(T>)>>)(Action<(Of <<'(Task<(Of <<'(T>)>>)>)>>), DispatcherBase)Overloaded.
The given Action will be performed when the task succeeds.
(Defined by TaskExtension.)

Fields

  NameDescription
Public fieldPriority
Change this when you work with a prioritzable Dispatcher or TaskDistributor to change the execution order lower values will be executed first.
(Inherited from Task.)
Public fieldTaskEnded
Will be called when the task has been finished (success or failure or aborted). This event will be fired at the thread the task was running at.
(Inherited from Task.)

Properties

  NameDescription
Public propertyHasEnded
Returns true when processing of this task has been ended or has been skipped due early abortion.
(Inherited from Task.)
Public propertyIsEnding
Returns true when processing of this task is ending.
(Inherited from Task.)
Public propertyIsFailed
Returns true if the task should abort and has been ended. This value will not been set to true in case of an exception while processing this task. The user needs to add checks for these kind of situation.
(Inherited from Task.)
Public propertyIsSucceeded
Returns true when the task has successfully been processed. Tasks which throw exceptions will not be set to a failed state, also any exceptions will not be catched, the user needs to add checks for these kind of situation.
(Inherited from Task.)
Public propertyRawResult (Overrides Task..::..RawResult.)
Public propertyResult
Public propertyShouldAbort
Returns true if the task should abort. If a Task should abort and has not yet been started it will never start but indicate an end and failed state.
(Inherited from Task.)

See Also