Struct jatsl::JobScheduler[][src]

pub struct JobScheduler { /* fields omitted */ }
Expand description

Job and task lifecycle handler

Implementations

Run a new task with the given context on the default scheduler

This method makes the given future abortable and provides access to dependencies and terminates it if required dependencies become unavailable.

Assigns a new job to the scheduler.

This method respawns the job if it crashes, provides access to dependencies, keeps track of its lifecycle and restarts it if dependencies become unavailable.

Gracefully terminates a single job by name if supported, otherwise kill it with force.

Gracefully terminates all managed jobs that support it and kill all the others.

Wait until all currently registered jobs report their status as ready.

Most useful when running complex tests which require jobs to be running in the background. Checks the status every 100ms, so you probably should not use this in “production” code.

Trait Implementations

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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