diff options
author | HampusM <hampus@hampusmat.com> | 2022-09-24 17:31:16 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-09-24 17:33:10 +0200 |
commit | fdd7f824fd1244226ca86f525f8439744676688f (patch) | |
tree | 073019e506e36578caeab894835ccf51dc5d7584 /src/lib.rs | |
parent | febfb927b27ab03041500b16c65bdbc0624a5a72 (diff) |
feat: add bind async default factories to async DI container
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -125,4 +125,9 @@ macro_rules! async_closure { Box::pin(async move { $($inner)* }) }) }; + (|| { $($inner: stmt);* }) => { + Box::new(|| { + Box::pin(async move { $($inner)* }) + }) + }; } |