pub struct TaskExecutor { /* private fields */ }Implementations§
Source§impl TaskExecutor
impl TaskExecutor
pub fn new() -> Self
pub async fn add_running_task(&self, task_id: String)
pub async fn remove_running_task(&self, task_id: &str)
pub async fn running_count(&self) -> usize
pub async fn is_empty(&self) -> bool
pub fn shutdown(&self)
pub fn wait_for_shutdown(&self) -> &Notify
pub async fn wait_for_running_tasks(&self)
Trait Implementations§
Source§impl Clone for TaskExecutor
impl Clone for TaskExecutor
Source§fn clone(&self) -> TaskExecutor
fn clone(&self) -> TaskExecutor
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TaskExecutor
impl !RefUnwindSafe for TaskExecutor
impl Send for TaskExecutor
impl Sync for TaskExecutor
impl Unpin for TaskExecutor
impl !UnwindSafe for TaskExecutor
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