AsyncIteratorMethodBuilder AsyncIteratorMethodBuilder AsyncIteratorMethodBuilder AsyncIteratorMethodBuilder Struct

定義

表示非同步迭代器的產生器。Represents a builder for asynchronous iterators.

public value class AsyncIteratorMethodBuilder
public struct AsyncIteratorMethodBuilder
type AsyncIteratorMethodBuilder = struct
Public Structure AsyncIteratorMethodBuilder
繼承
AsyncIteratorMethodBuilderAsyncIteratorMethodBuilderAsyncIteratorMethodBuilderAsyncIteratorMethodBuilder

方法

AwaitOnCompleted<TAwaiter,TStateMachine>(TAwaiter, TStateMachine) AwaitOnCompleted<TAwaiter,TStateMachine>(TAwaiter, TStateMachine) AwaitOnCompleted<TAwaiter,TStateMachine>(TAwaiter, TStateMachine) AwaitOnCompleted<TAwaiter,TStateMachine>(TAwaiter, TStateMachine)

排程狀態機器以在指定的 awaiter 完成時繼續下一個動作。Schedules the state machine to proceed to the next action when the specified awaiter completes.

AwaitUnsafeOnCompleted<TAwaiter,TStateMachine>(TAwaiter, TStateMachine) AwaitUnsafeOnCompleted<TAwaiter,TStateMachine>(TAwaiter, TStateMachine) AwaitUnsafeOnCompleted<TAwaiter,TStateMachine>(TAwaiter, TStateMachine) AwaitUnsafeOnCompleted<TAwaiter,TStateMachine>(TAwaiter, TStateMachine)

排程狀態機器以在指定的 awaiter 完成時繼續下一個動作。Schedules the state machine to proceed to the next action when the specified awaiter completes.

Complete() Complete() Complete() Complete()

將反覆項目標示為完成,無論成功與否。Marks iteration as being completed, whether successfully or otherwise.

Create() Create() Create() Create()

建立 AsyncIteratorMethodBuilder 結構的執行個體。Creates an instance of the AsyncIteratorMethodBuilder struct.

MoveNext<TStateMachine>(TStateMachine) MoveNext<TStateMachine>(TStateMachine) MoveNext<TStateMachine>(TStateMachine) MoveNext<TStateMachine>(TStateMachine)

叫用狀態機器上的 MoveNext(),同時防護 ExecutionContextInvokes MoveNext() on the state machine while guarding the ExecutionContext.

適用於