Macro jupiter::spawn

source ·
macro_rules! spawn {
    ($e:expr) => { ... };
}
Expand description

Provides a simple macro to execute an async lambda within tokio::spawn.

Note that this also applies std::mem::drop on the returned closure to make clippy happy.

Example

spawn!(async move {
    // perform some async stuff here...
});