public enum Event<Success, Failure> where 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 the
Resultof processing the incoming
case stream(Result<Success, Failure>)