AsyncIteratorMethodBuilder 结构

定义

表示异步迭代器的生成器。Represents a builder for asynchronous iterators.

public value class AsyncIteratorMethodBuilder
public struct AsyncIteratorMethodBuilder
type AsyncIteratorMethodBuilder = struct
Public Structure AsyncIteratorMethodBuilder
继承
AsyncIteratorMethodBuilder

方法

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)

指定的 Awaiter 完成时,安排状态机以继续下一操作。Schedules the state machine to proceed to the next action when the specified awaiter completes.

Complete()

将迭代标记为已完成,无论是否成功。Marks iteration as being completed, whether successfully or otherwise.

Create()

创建 AsyncIteratorMethodBuilder 结构的实例。Creates an instance of the AsyncIteratorMethodBuilder struct.

MoveNext<TStateMachine>(TStateMachine)

在状态机上调用MoveNext(),同时保护 ExecutionContextInvokes MoveNext() on the state machine while guarding the ExecutionContext.

适用于