| 1 | use pyo3rust-analyzer cargo pyo3 0.28.0 crate/::Pythonrust-analyzer cargo pyo3 0.28.0 marker/Python#; |
| 2 | |
| 3 | mod tokio_run_foreverrust-analyzer cargo pyo3-async-runtimes 0.28.0 tokio_run_forever/; |
| 4 | |
| 5 | fn mainrust-analyzer cargo pyo3-async-runtimes 0.28.0 main().() { |
| 6 | Pythonrust-analyzer cargo pyo3 0.28.0 marker/Python#::initializerust-analyzer cargo pyo3 0.28.0 marker/impl#[`Python<'_>`]initialize().(); |
| 7 | |
| 8 | let mut builder = tokiorust-analyzer cargo tokio 1.49.0 crate/::runtimerust-analyzer cargo tokio 1.49.0 runtime/::Builderrust-analyzer cargo tokio 1.49.0 runtime/builder/Builder#::new_current_threadrust-analyzer cargo tokio 1.49.0 runtime/builder/impl#[Builder]new_current_thread().(); |
| 9 | builder.enable_allrust-analyzer cargo tokio 1.49.0 runtime/builder/impl#[Builder]enable_all().(); |
| 10 | |
| 11 | pyo3_async_runtimesrust-analyzer cargo pyo3-async-runtimes 0.28.0 crate/::tokiorust-analyzer cargo pyo3-async-runtimes 0.28.0 tokio/::initrust-analyzer cargo pyo3-async-runtimes 0.28.0 tokio/init().(builder); |
| 12 | stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::threadrust-analyzer cargo std https://github.com/rust-lang/rust/library/std thread/::spawnrust-analyzer cargo std https://github.com/rust-lang/rust/library/std thread/functions/spawn().(move || { |
| 13 | pyo3_async_runtimesrust-analyzer cargo pyo3-async-runtimes 0.28.0 crate/::tokiorust-analyzer cargo pyo3-async-runtimes 0.28.0 tokio/::get_runtimerust-analyzer cargo pyo3-async-runtimes 0.28.0 tokio/get_runtime().().block_onrust-analyzer cargo tokio 1.49.0 runtime/runtime/impl#[Runtime]block_on().(futures_utilrust-analyzer cargo futures-util 0.3.31 crate/::futurerust-analyzer cargo futures-util 0.3.31 future/::pendingrust-analyzer cargo futures-util 0.3.31 future/pending/pending().::<()>()); |
| 14 | }); |
| 15 | |
| 16 | tokio_run_foreverrust-analyzer cargo pyo3-async-runtimes 0.28.0 tokio_run_forever/::test_mainrust-analyzer cargo pyo3-async-runtimes 0.28.0 tokio_run_forever/test_main().(); |
| 17 | printlnrust-analyzer cargo std https://github.com/rust-lang/rust/library/std macros/println!!("test test_tokio_current_thread_run_forever ... ok"); |
| 18 | } |