Event
public enum Event<Success, Failure> : Sendable where Success : Sendable, Failure : Error
Type representing an event flowing through the stream. Contains either the Result of processing streamed
Data or the completion of the stream.
-
Output produced every time the instance receives additional
Data. The associated value contains theResultof processing the incomingData.Declaration
Swift
case stream(Result<Success, Failure>) -
Output produced when the instance has completed, whether due to stream end, cancellation, or an error. Associated
Completionvalue contains the final state.Declaration
Swift
case complete(Completion)
View on GitHub
Install in Dash