init(_:)
Constructs an asynchronous sequence for a given closure by tracking changes of @Observable types.
Declaration
init(_ emit: @escaping @isolated(any) @Sendable () throws(Failure) -> Element)Parameters
- emit:
A closure to generate an element for the sequence.
Discussion
The emit closure is responsible for extracting a value out of a single or many @Observable types.