Function ambient_api::prelude::cb
source · pub fn cb<T>(f: T) -> Arc<CbDebuggable<T>>
Expand description
Helper for constructing a Cb.
This is just wrapping an Arc
, and it only exists because Arc<dyn Fn..>
doesn’t implement Debug, so
we’re wrapping it with a Cb
to avoid having to handle that in all structs that implement Debug