Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
IWorkItem.cs
1using System.Threading;
2using System.Threading.Tasks;
3
5{
9 public interface IWorkItem
10 {
14 Task Execute();
15
20 Task Execute(CancellationToken Cancel);
21
26 void Processed(bool Result);
27
32 Task<bool> Wait();
33
39 Task<bool> Wait(CancellationToken Cancel);
40 }
41}
Interface for asynchronous operations.
Definition: IWorkItem.cs:10
Task Execute()
Executes the operation.
Task Execute(CancellationToken Cancel)
Executes the operation.
void Processed(bool Result)
Flags the item as processed.
Task< bool > Wait(CancellationToken Cancel)
Waits for the item to be processed.
Task< bool > Wait()
Waits for the item to be processed.