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