-
Notifications
You must be signed in to change notification settings - Fork 16
WorkOption
The custom work ID. If set to null, the thread pool will use a Guid as the work ID.
string CustomWorkID;The group name of the work.
string Group;The maximum amount of time the work is allowed to run before it is terminated.
TimeoutOption TimeoutOption;The callback function that is called when the work finishes execution.
Action<ExecuteResult<TResult>> Callback;The priority level of the work. Works with higher priority (represented by higher numerical values) are executed first.
int WorkPriority;Specifies the scheduling priority of a System.Threading.Thread.
ThreadPriority ThreadPriority;Get/Set backgroundness of thread in thread pool.
bool IsBackground;A set of works that this work depends on. This work will not start until all dependent works have completed execution.
ConcurrentSet<WorkID> Dependents;bool LongRunning;Retry the work if execute failed.
RetryOption RetryOption;Should storage the work result.
bool ShouldStoreResult;Indicates whether the work should be placed in the local worker's queue if possible.
WorkPlacementPolicy WorkPlacementPolicy;Indicates whether to automatically check for task stop when posting an async continuation.
bool AutoCheckStopOnAsyncTask;enum WorkPlacementPolicy { PreferLocalWorker, PreferIdleThenLocal, PreferIdleThenLeastLoaded };- Sync | Async
- Pool Control | Work Control
- Divide And Conquer
- Thread Pool Sizing
- Work Callback | Default Callback
- Rejection Policy
- Parallel Execution
- Work Priority | Thread Priority
- Error Handling
- Work Timeout | Cumulative Work Timeout
- Work Dependency
- Work Group
- Events
- Runtime Status
- Running Timer
- Queue Type (FIFO | LIFO | Deque | Custom)
Core
Results
Options