-
Notifications
You must be signed in to change notification settings - Fork 16
Events
PowerThreadPool supports a variety of events, making it convenient to manage the entire thread pool or individual work items. Below is a detailed description of each event available in the PowerThreadPool.
This event is triggered when the thread pool is started.
event EventHandler<EventArgs> PoolStarted;This event is fired when the thread pool becomes idle. It indicates that there are no active works and the pool is waiting for new work.
event EventHandler<PoolIdledEventArgs> PoolIdled;This event is fired when the running worker count changed.
event EventHandler<RunningWorkerCountChangedEventArgs> RunningWorkerCountChanged;This event is raised when the thread pool times out.
event EventHandler<EventArgs> PoolTimedOut;This event occurs when a new work item begins execution in the thread pool.
event EventHandler<WorkStartedEventArgs> WorkStarted;This event is triggered when a work item completes its execution. It provides the result and information of the work item.
event EventHandler<WorkEndedEventArgs> WorkEnded;This event is fired when a work item times out.
event EventHandler<WorkTimedOutEventArgs> WorkTimedOut;This event occurs when a work item is stopped before completion. It can be used to handle cases where works need to be terminated.
event EventHandler<WorkStoppedEventArgs> WorkStopped;This event is triggered when a work item is canceled before executing.
event EventHandler<WorkCanceledEventArgs> WorkCanceled;This event is triggered when a work item is rejected.
event EventHandler<WorkRejectedEventArgs> WorkRejected;This event is triggered when a work item is discarded.
event EventHandler<WorkDiscardedEventArgs> WorkDiscarded;This event is raised when an error occurs within the thread pool or during the execution of a work item. It provides details about the error.
event EventHandler<ErrorOccurredEventArgs> ErrorOccurred;- 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