AppFlowy/rust-lib/flowy-dispatch/src/macros.rs

9 lines
166 B
Rust

#[macro_export]
macro_rules! dispatch_future {
($fut:expr) => {
DispatchFuture {
fut: Box::pin(async move { $fut.await }),
}
};
}