1using System.Threading.Tasks;
63 event EventHandlerAsync<ProcessorEventArgs>
OnIdle;
Interface for asynchronously disposable objects.
Interface for AsyncProcessor<T> instances.
void CloseForTermination()
Closes the processor for new items, but continues to process queued items.
string Name
Name of processor.
Task CloseForTermination(bool WaitForCompletion, int Timeout)
Closes the processor for new items. If WaitForCompletion is true, the method waits for queued items ...
bool Idle
If processor is idle
bool Terminated
If the console worker has been terminated.
Task CloseForTermination(bool WaitForCompletion)
Closes the processor for new items. If WaitForCompletion is true, the method waits for queued items ...
EventHandlerAsync< ProcessorEventArgs > OnIdle
Event raised when the processor becomes idle. It can be raised multiple times if more than one proces...
bool Terminating
If the console worker is being terminated.
Task WaitUntilIdle()
Waits until the processor becomes idle.
int QueueSize
Number of items in queue.