Skip to main content

dispatch

Function dispatch 

Source
pub async fn dispatch<J: Job>(job: &J) -> Result<(), AppError>
Expand description

Serializes job to JSON and enqueues it - durable the moment this returns Ok, independent of whether any xr queue:work process is currently running to pick it up.