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

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.)

See Also