pub fn wait_for_future<F>(py: Python<'_>, f: F) -> F::Outputwhere F: Future + Send, F::Output: Send,
Utility to collect rust futures with GIL released