Delegate StreamHandlerCallback<TItem>
- Namespace
- SimpleMediator
- Assembly
- SimpleMediator.dll
Represents the continuation of the streaming pipeline inside a behavior while honouring the Zero Exceptions policy.
public delegate IAsyncEnumerable<Either<MediatorError, TItem>> StreamHandlerCallback<TItem>()
Returns
- IAsyncEnumerable<Either<MediatorError, TItem>>
- Represents the continuation of the streaming pipeline inside a behavior while honouring the Zero Exceptions policy.
Type Parameters
TItemType of each item yielded by the stream.
Remarks
This delegate returns an async enumerable of Either<MediatorError, TItem>,
allowing behaviors to enumerate the stream from the next step and yield items with
Railway Oriented Programming semantics.