pub fn to_closure<O, F: Future<Output = O>>(future: F) -> Arc<Closure>