pub struct ExecutorPool { /* private fields */ }
Expand description
Executor pool for managing multiple executors
Implementations§
Source§impl ExecutorPool
impl ExecutorPool
pub fn new(pool_size: usize, config: ExecutorConfig) -> Self
Sourcepub async fn get_executor(&self) -> Arc<TaskExecutor>
pub async fn get_executor(&self) -> Arc<TaskExecutor>
Get the next executor using round-robin
Sourcepub async fn total_running_tasks(&self) -> usize
pub async fn total_running_tasks(&self) -> usize
Get total number of running tasks across all executors
Sourcepub async fn combined_metrics(&self) -> ExecutionMetrics
pub async fn combined_metrics(&self) -> ExecutionMetrics
Get combined metrics from all executors
Auto Trait Implementations§
impl Freeze for ExecutorPool
impl !RefUnwindSafe for ExecutorPool
impl Send for ExecutorPool
impl Sync for ExecutorPool
impl Unpin for ExecutorPool
impl !UnwindSafe for ExecutorPool
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more