AsyncValueTaskMethodBuilder Estrutura
Definição
public value class AsyncValueTaskMethodBuilder
public struct AsyncValueTaskMethodBuilder
type AsyncValueTaskMethodBuilder = struct
Public Structure AsyncValueTaskMethodBuilder
- Herança
Propriedades
Task |
Obtém a tarefa para esse construtor.Gets the task for this builder. |
Métodos
AwaitOnCompleted<TAwaiter,TStateMachine>(TAwaiter, TStateMachine) |
Programa para que a máquina de estado prossiga para a próxima ação quando o awaiter especificado for concluído.Schedules the state machine to proceed to the next action when the specified awaiter completes. |
AwaitUnsafeOnCompleted<TAwaiter,TStateMachine>(TAwaiter, TStateMachine) |
Programa para que a máquina de estado prossiga para a próxima ação quando o awaiter especificado for concluído.Schedules the state machine to proceed to the next action when the specified awaiter completes. |
Create() |
Cria uma instância do struct AsyncValueTaskMethodBuilder.Creates an instance of the AsyncValueTaskMethodBuilder struct. |
SetException(Exception) |
Marca a tarefa como com falha e associa a exceção especificada à tarefa.Marks the task as failed and binds the specified exception to the task. |
SetResult() |
Marca a tarefa como concluída com êxito.Marks the task as successfully completed. |
SetStateMachine(IAsyncStateMachine) |
Associa o construtor com a máquina de estado especificada.Associates the builder with the specified state machine. |
Start<TStateMachine>(TStateMachine) |
Começa a execução do construtor com a máquina de estado associada.Begins running the builder with the associated state machine. |