Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
IAsyncProcessor.cs
1using System.Threading.Tasks;
2using Waher.Events;
3
5{
10 {
15
22 Task CloseForTermination(bool WaitForCompletion);
23
32 Task CloseForTermination(bool WaitForCompletion, int Timeout);
33
37 string Name { get; }
38
42 bool Terminating { get; }
43
47 bool Terminated { get; }
48
52 int QueueSize { get; }
53
57 bool Idle { get; }
58
63 event EventHandlerAsync<ProcessorEventArgs> OnIdle;
64
69 }
70}
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.