IAsyncSource<T>

Namespace: SnowBank.Linq.Async · interface

Defines a source that can produce items

Methods

ReceiveAsync

Task<Maybe<T>> ReceiveAsync(CancellationToken ct)

Consume a new value from the source

  • ct — Token used to cancel the operation

Returns: Task that will return a new value, nothing (if it has completed) or on exception