BatchWorkerFromDelegate Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
BatchWorkerFromDelegate(Func<Task>) | |
BatchWorkerFromDelegate(Func<Task>, CancellationToken) |
Initializes a new BatchWorkerFromDelegate instance. |
BatchWorkerFromDelegate(Func<Task>)
BatchWorkerFromDelegate(Func<Task>, CancellationToken)
- Source:
- BatchWorker.cs
Initializes a new BatchWorkerFromDelegate instance.
public BatchWorkerFromDelegate (Func<System.Threading.Tasks.Task> work, System.Threading.CancellationToken cancellationToken = default);
new Orleans.BatchWorkerFromDelegate : Func<System.Threading.Tasks.Task> * System.Threading.CancellationToken -> Orleans.BatchWorkerFromDelegate
Public Sub New (work As Func(Of Task), Optional cancellationToken As CancellationToken = Nothing)
Parameters
- cancellationToken
- CancellationToken
The cancellation token used to stop the worker.