Expand description
Background container for long live jobs. Background container guarantees job liveness across plugin life cycle.
Structs§
- Cancellation
Callback State - Cancellation
Token - A token which can be used to signal a cancellation request to the job.
- Cancellation
Token Handle Deprecated - FfiBackground
JobCancellation Token - For internal use.
- JobCancellation
Result - Outcome of the request to cancel a set of background jobs.
- Service
Worker Manager ServiceWorkerManagerallows plugin services to create long-live jobs and manage their life cycle.
Enums§
Functions§
- cancel_
background_ jobs_ by_ tag_ inner - Same as
PicoContext::cancel_tagged_jobs. - cancel_
jobs_ by_ tag - Same as
PicoContext::cancel_tagged_jobs. - register_
job - Same as
PicoContext::register_job. - register_
tagged_ job - Same as
PicoContext::register_tagged_job. - set_
jobs_ shutdown_ timeout - In case when jobs were canceled by
picodatause this function to determine a shutdown timeout - time duration thatpicodatauses to ensure that all jobs gracefully end.