diff options
Diffstat (limited to 'doc/usage/invoke_async_expand.rs')
| -rw-r--r-- | doc/usage/invoke_async_expand.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/usage/invoke_async_expand.rs b/doc/usage/invoke_async_expand.rs new file mode 100644 index 0000000..4b8d93f --- /dev/null +++ b/doc/usage/invoke_async_expand.rs @@ -0,0 +1,6 @@ +async fn compute(x: i32) -> i32 { + x * 2 +} +async fn example() -> i32 { + { { compute(5).await } } +} |
