One Logo Pool Ball
FoundationModels · IOS API REFERENCE

LanguageModelExecutorGenerationChannel.AsyncIterator

struct · iOS 27.0+ · SDK 27.1

struct AsyncIterator

The type of asynchronous iterator that produces elements of this asynchronous sequence.

Members (1)

method · iOS 27.0+

next

TypeScript
next(actor?: (SDKHandle) | null): Promise<(LanguageModelExecutorGenerationChannel_Event) | null>
Swift declaration
mutating func next(isolation actor: isolated (any Actor)?) async throws -> LanguageModelExecutorGenerationChannel.Event?

Asynchronously advances to the next element and returns it, or ends the sequence if there is no next element. - Returns: The next element, if it exists, or `nil` to signal the end of the sequence.

Skipped declarations

No declarations were skipped in this snapshot.

All FoundationModels types →