Class WorkerDelayProvider
Represents a class that implements delay logic for thread workers.
Inherited Members
Namespace: Swan.Threading
Syntax
public static class WorkerDelayProvider
Properties
Default
Gets the default delay provider.
Declaration
public static IWorkerDelayProvider Default { get; }
Property Value
Type | Description |
---|---|
IWorkerDelayProvider |
SteppedToken
Provides a delay implementation which uses short delay intervals of 5ms and a wait on the delay task in the final loop.
Declaration
public static IWorkerDelayProvider SteppedToken { get; }
Property Value
Type | Description |
---|---|
IWorkerDelayProvider |
Token
Provides a delay implementation which simply waits on the task and cancels on the cancellation token.
Declaration
public static IWorkerDelayProvider Token { get; }
Property Value
Type | Description |
---|---|
IWorkerDelayProvider |
TokenSleep
Provides a delay implementation which uses short sleep intervals of 5ms.
Declaration
public static IWorkerDelayProvider TokenSleep { get; }
Property Value
Type | Description |
---|---|
IWorkerDelayProvider |
TokenTimeout
Provides a delay implementation which waits on the task and cancels on both, the cancellation token and a wanted delay timeout.
Declaration
public static IWorkerDelayProvider TokenTimeout { get; }
Property Value
Type | Description |
---|---|
IWorkerDelayProvider |