19 void Start(CancellationToken? cancellationToken =
null);
29 TProduced
TryTake(out
bool success, CancellationToken? cancellation);
Interface for a class that consumes from a source asynchronously and produces a queue of some other r...
TProduced TryTake(out bool success, CancellationToken? cancellation)
Attempts to remove an item from the produced list. May block if there is not yet an item ready,...
bool IsRunning
Indicates whether the producer is currently running.
bool CanTake
Indicates whether a call to Take will ever return another item.
void Start(CancellationToken? cancellationToken=null)
Start the asynchronous producer.
void Cancel()
Stop the producer from reading any more bytes.