aboutsummaryrefslogtreecommitdiff
path: root/doc/usage/invoke_async_expand.rs.lock
blob: 4b8d93fac0a471425ee99c8cac71470003bfcad3 (plain) (blame)
1
2
3
4
5
6
async fn compute(x: i32) -> i32 {
    x * 2
}
async fn example() -> i32 {
    { { compute(5).await } }
}