Struct jatsl::TaskManager [−][src]
pub struct TaskManager<Context> {
pub context: Context,
// some fields omitted
}
Expand description
Manager for tasks and jobs
Provides context, handles resource availability changes and graceful termination
Fields
context: Context
Implementations
Create a new task manager for the given task and context
Create a new resource handle to notify about resource state
Future that completes when the job should gracefully shutdown
Check if the job should enter graceful shutdown
Trait Implementations
Auto Trait Implementations
impl<Context> !RefUnwindSafe for TaskManager<Context>
impl<Context> Send for TaskManager<Context> where
Context: Send,
impl<Context> Sync for TaskManager<Context> where
Context: Sync,
impl<Context> Unpin for TaskManager<Context> where
Context: Unpin,
impl<Context> !UnwindSafe for TaskManager<Context>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more