Macro drought::lambda

source ·
macro_rules! lambda {
    (|$($arg:pat_param),*| { $($bl:tt)* }) => { ... };
}
Expand description

A macro to hide the ugly nesting needed for asynchronous callbacks to work.

It just wraps the lambda in an async future and pins it.