defer

Function defer 

Source
pub fn defer<Args, T, F>(f: F, args: Args) -> DeferredFuture<Args, T, F> 
where Args: Send + 'static, T: Send + 'static, F: FnOnce(Args) -> T + Send + 'static,
Expand description

Defers execution of a blocking function to another thread returning a DeferredFuture, which does nothing until it is awaited.

Examples found in repository?
examples/defer.rs (lines 25-31)
24async fn test() -> String {
25    defer(
26        |(s,)| {
27            thread::sleep(Duration::from_millis(2000));
28            s + "world"
29        },
30        ("Hello, ".to_owned(),),
31    )
32    .await
33}