Skip to main content

RepeatableJob

Type Alias RepeatableJob 

Source
pub type RepeatableJob<C> = Arc<dyn Fn(&C) -> Response + Send + Sync + 'static>;
Expand description

A route-bind job that can run more than once. The scheduler may admit such a bind beside a running maintenance job or interactive readers with only a shared hold on the actor’s epoch gate; when the configure finds it must change the root, the run is discarded and the same job is queued again as an exclusive writer.

Aliased Type§

pub struct RepeatableJob<C> { /* private fields */ }