Function async_fn

Source
pub fn async_fn<T, F>(f: F) -> impl FnMut(ClusterEvent) -> Ready<T>
where F: FnMut(ClusterEvent) -> T,
Expand description

Wraps plain function over a cluster event into an async one.