Macro shellfish::async_fn

source ·
macro_rules! async_fn {
    ($state:ty, $inc:expr) => { ... };
}
Available on crate feature async only.
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 Commands.

The first argument is a Type, which is the state. The second is the async function.