Skip to main content

scope_identity

Function scope_identity 

Source
pub async fn scope_identity<F>(
    identity: Identity,
    future: F,
) -> <F as Future>::Output
where F: Future,
Expand description

with_identity for async code: future runs as identity.