Run the provided future to completion using a global Tokio runtime managed by `pyo3_async_runtimes`.
(future: F)
| 21 | |
| 22 | /// Run the provided future to completion using a global Tokio runtime managed by `pyo3_async_runtimes`. |
| 23 | pub(crate) fn run_future<F: Future>(future: F) -> F::Output { |
| 24 | let runtime = pyo3_async_runtimes::tokio::get_runtime(); |
| 25 | let set = LocalSet::new(); |
| 26 | set.block_on(runtime, future) |
| 27 | } |
no outgoing calls
no test coverage detected