메소드 | 설명 | |
---|---|---|
SetCanceled ( ) : void |
Transitions the underlying Task into the TaskStatus.Canceled state.
|
|
SetException ( |
Transitions the underlying Task into the TaskStatus.Faulted state.
|
|
SetException ( IEnumerable |
Transitions the underlying Task into the TaskStatus.Faulted state.
|
|
SetResult ( ) : void |
Transitions the underlying Task into the TaskStatus.RanToCompletion state.
|
|
TaskCompletionSource ( ) : System |
Initializes a new instance of the TaskCompletionSource class.
|
|
TaskCompletionSource ( TaskCreationOptions creationOptions ) : System |
Initializes a new instance of the TaskCompletionSource class with the specified options.
|
|
TaskCompletionSource ( object state ) : System |
Initializes a new instance of the TaskCompletionSource class with the specified state.
|
|
TaskCompletionSource ( object state, TaskCreationOptions creationOptions ) : System |
Initializes a new instance of the TaskCompletionSource class with the specified state and options.
|
|
TrySetCanceled ( ) : bool |
Attempts to transition the underlying Task into the TaskStatus.Canceled state.
|
|
TrySetException ( |
Attempts to transition the underlying Task into the TaskStatus.Faulted state.
|
|
TrySetException ( IEnumerable |
Attempts to transition the underlying Task into the TaskStatus.Faulted state.
|
|
TrySetResult ( ) : bool |
Attempts to transition the underlying Task into the TaskStatus.RanToCompletion state.
|
public SetException ( |
||
exception | The exception to bind to this |
|
리턴 | void |
public SetException ( IEnumerable |
||
exceptions | IEnumerable |
The collection of exceptions to bind to this |
리턴 | void |
public TaskCompletionSource ( TaskCreationOptions creationOptions ) : System | ||
creationOptions | TaskCreationOptions | The options to use when creating the underlying |
리턴 | System |
public TaskCompletionSource ( object state ) : System | ||
state | object | The state to use as the underlying |
리턴 | System |
public TaskCompletionSource ( object state, TaskCreationOptions creationOptions ) : System | ||
state | object | The state to use as the underlying |
creationOptions | TaskCreationOptions | The options to use when creating the underlying |
리턴 | System |
public TrySetException ( |
||
exception | The exception to bind to this |
|
리턴 | bool |
public TrySetException ( IEnumerable |
||
exceptions | IEnumerable |
The collection of exceptions to bind to this |
리턴 | bool |