Bridge

Task Members

The Task type exposes the following members.

Methods


  Name Description
Public method Complete
Public method ContinueWith(Action<(Of <<'(Task>)>>))
Public method ContinueWith<(Of <<'(TResult>)>>)(Func<(Of <<'(Task, TResult>)>>))
Public method Static member Delay
Creates a task that completes after a time delay.
Public method Dispose
Releases all resources used by the current instance of the Task class.
Public method Static member FromCallback(Object, String, array<Object>[]()[][])
Public method Static member FromCallback<(Of <<'(TResult>)>>)(Object, String, array<Object>[]()[][])
Public method Static member FromCallbackResult(Object, String, Delegate, array<Object>[]()[][])
Public method Static member FromCallbackResult<(Of <<'(TResult>)>>)(Object, String, Delegate, array<Object>[]()[][])
Public method Static member FromPromise(IPromise)
Public method Static member FromPromise<(Of <<'(TResult>)>>)(IPromise, Delegate)
Public method Static member FromPromise<(Of <<'(TResult>)>>)(IPromise, Delegate, Delegate)
Public method Static member FromPromise<(Of <<'(TResult>)>>)(IPromise, Delegate, Delegate, Delegate)
Public method Static member FromResult<(Of <<'(TResult>)>>)
Creates a Task<(Of <(<'TResult>)>)> that's completed successfully with the specified result.
Public method GetAwaiter
Gets an awaiter used to await this Task.
Public method Static member Run(Action)
Public method Static member Run<(Of <<'(TResult>)>>)(Func<(Of <<'(TResult>)>>))
Public method Start
Starts the Task, scheduling it for execution to the current TaskScheduler.
Public method Static member WhenAll(array<Task>[]()[][])
Public method Static member WhenAll(IEnumerable<(Of <<'(Task>)>>))
Public method Static member WhenAll<(Of <<'(TResult>)>>)(array<Task<(Of <<'(TResult>)>>)>[]()[][])
Public method Static member WhenAll<(Of <<'(TResult>)>>)(IEnumerable<(Of <<'(Task<(Of <<'(TResult>)>>)>)>>))
Public method Static member WhenAny(array<Task>[]()[][])
Public method Static member WhenAny(IEnumerable<(Of <<'(Task>)>>))
Public method Static member WhenAny<(Of <<'(TResult>)>>)(array<Task<(Of <<'(TResult>)>>)>[]()[][])
Public method Static member WhenAny<(Of <<'(TResult>)>>)(IEnumerable<(Of <<'(Task<(Of <<'(TResult>)>>)>)>>))

Properties


  Name Description
Public property Exception
Gets the AggregateException that caused the Task to end prematurely. If the Task completed successfully or has not yet thrown any exceptions, this will return null.
Public property IsCanceled
Gets whether this Task instance has completed execution due to being canceled.
Public property IsCompleted
Gets whether this Task has completed.
Public property IsFaulted
Gets whether the Task completed due to an unhandled exception.
Public property Status
Gets the TaskStatus of this task.