Debian Codegraph @

pytests/test_tokio_current_thread_run_forever.rs

raw symbols SCIP
1 use pyo3::Python;
2
3 mod tokio_run_forever;
4
5 fn main() {
6 Python::initialize();
7
8 let mut builder = tokio::runtime::Builder::new_current_thread();
9 builder.enable_all();
10
11 pyo3_async_runtimes::tokio::init(builder);
12 std::thread::spawn(move || {
13 pyo3_async_runtimes::tokio::get_runtime().block_on(futures_util::future::pending::<()>());
14 });
15
16 tokio_run_forever::test_main();
17 println!("test test_tokio_current_thread_run_forever ... ok");
18 }