Skip to main content

background_task

Function background_task 

Source
pub async fn background_task<Fut>(
    db: Pool<Postgres>,
    scope: String,
    future: Fut,
) -> Result<(Uuid, DateTime<Utc>), Error>
where Fut: Future<Output = (TaskStatus, Value)> + Send + 'static,