pub fn in_commit_scope<F: Future>(
scope: CommitScope,
work: F,
) -> impl Future<Output = F::Output>Expand description
Run work with its database calls’ commits attributed to scope. The
scope’s future holds work once and polls it; an async fn here would
hold a second, moved copy beside it. Calls started from other tasks,
including tasks work spawns, are outside the scope.