next
TypeScriptnext(actor?: (SDKHandle) | null): Promise<(LanguageModelExecutorGenerationChannel_Event) | null>Swift declarationmutating 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.