First draft of graceful corruption restoration
This commit is contained in:
parent
b8d423555b
commit
189a820113
3 changed files with 103 additions and 26 deletions
|
@ -223,6 +223,13 @@ macro_rules! iife {
|
|||
};
|
||||
}
|
||||
|
||||
#[macro_export]
|
||||
macro_rules! async_iife {
|
||||
($block:block) => {
|
||||
(|| async move { $block })()
|
||||
};
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue