aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 247f907..082a93d 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -125,4 +125,9 @@ macro_rules! async_closure {
Box::pin(async move { $($inner)* })
})
};
+ (|| { $($inner: stmt);* }) => {
+ Box::new(|| {
+ Box::pin(async move { $($inner)* })
+ })
+ };
}