Constructor WorkerTask
WorkerTask(Func<CancellationToken, Task>, bool)
Declaration
public WorkerTask(Func<CancellationToken, Task> actionSupplier, bool autoStart = true)
Parameters
Type | Name | Description |
---|---|---|
Func<CancellationToken, Task> | actionSupplier | |
bool | autoStart |
WorkerTask(Action<CancellationToken>, bool)
Declaration
public WorkerTask(Action<CancellationToken> action, bool autoStart = true)
Parameters
Type | Name | Description |
---|---|---|
Action<CancellationToken> | action | |
bool | autoStart |