Structurepureswift.bluetooth 7.2.0Bluetooth
AsyncIterator
AsyncIndefiniteStream.swift:88- iOS
- 13.0+
- macOS
- 10.15+
- tvOS
- 13.0+
- watchOS
- 6.0+
struct AsyncIterator
struct AsyncIterator
where Element:Sendable
import Bluetooth
Pure Swift Bluetooth Definitions.
struct AsyncIndefiniteStream<Element> where Element : Sendable
Async Stream that will produce values until stop()
is called or task is cancelled.
protocol Sendable
struct Continuation
protocol AsyncIteratorProtocol<Element, Failure>
A type that asynchronously supplies the values of a sequence one at a time.
mutating func next() async throws -> Element?
mutating func next(isolation actor: isolated (any Actor)?) async throws(Self.Failure) -> Self.Element?
Default implementation of next()
in terms of next()
, which is required to maintain backward compatibility with existing async iterators.