macro_rules! async_fn {
($state:ty, $inc:expr) => { ... };
}
Expand description
Use this macro to wrap an asynchronous function so that it can be used as a function pointer.
This is used with async Command
s.
The first argument is a Type, which is the state. The second is the async function.