Struct pliantdb_jobs::manager::Manager [−][src]
pub struct Manager<Key = ()> { /* fields omitted */ }
Expand description
A background jobs manager.
Implementations
Pushes a job
into the queue. Pushing the same job definition twice
will yield two tasks in the queue.
Uses Keyed::key
to ensure no other job with the same key
is
currently running. If another job is already running that matches, a
clone of that Handle
will be returned. When the job finishes, all
Handle
clones will be notified with a copy of the result.
Spawns a worker. In general, you shouldn’t need to call this function directly.
Trait Implementations
Auto Trait Implementations
impl<Key = ()> !RefUnwindSafe for Manager<Key>
impl<Key = ()> !UnwindSafe for Manager<Key>
Blanket Implementations
Mutably borrows from an owned value. Read more