Function ambient_cb::cb

source ·
pub fn cb<T>(f: T) -> Cb<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