pub struct TaskTracker { /* private fields */ }Expand description
Shared handle to pending background tasks and in-flight commands.
Implementations§
Source§impl TaskTracker
impl TaskTracker
Sourcepub async fn cancel_all_in_flight(&self)
pub async fn cancel_all_in_flight(&self)
Cancel all in-flight commands by sending the cancel signal, which triggers SIGTERM to child processes.
pub async fn drain(&self)
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for TaskTracker
impl !UnwindSafe for TaskTracker
impl Freeze for TaskTracker
impl Send for TaskTracker
impl Sync for TaskTracker
impl Unpin for TaskTracker
impl UnsafeUnpin for TaskTracker
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