Skip to main content

start_background_task

Function start_background_task 

Source
pub async fn start_background_task(
    operation: impl Future<Output = AuthResult<()>> + Send + 'static,
) -> AuthResult<BackgroundTaskCompletion>
Expand description

Start owned work immediately and retain the initiating request/tracing context. The returned observation may be dropped without cancelling pending work.

ยงErrors

Returns an error when pending work cannot be scheduled on a Tokio executor.