| 1 | mod commonrust-analyzer cargo pyo3-async-runtimes 0.28.0 common/; |
| 2 | mod tokio_asynciorust-analyzer cargo pyo3-async-runtimes 0.28.0 tokio_asyncio/; |
| 3 | |
| 4 | use pyo3rust-analyzer cargo pyo3 0.28.0 crate/::preluderust-analyzer cargo pyo3 0.28.0 prelude/::*; |
| 5 | |
| 6 | fn mainrust-analyzer cargo pyo3-async-runtimes 0.28.0 main().() -> pyo3rust-analyzer cargo pyo3 0.28.0 crate/::PyResultrust-analyzer cargo pyo3 0.28.0 err/PyResult#<()> { |
| 7 | Pythonrust-analyzer cargo pyo3 0.28.0 marker/Python#::initializerust-analyzer cargo pyo3 0.28.0 marker/impl#[`Python<'_>`]initialize().(); |
| 8 | |
| 9 | Pythonrust-analyzer cargo pyo3 0.28.0 marker/Python#::attachrust-analyzer cargo pyo3 0.28.0 marker/impl#[`Python<'_>`]attach().(|py| { |
| 10 | 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().(); |
| 11 | builder.enable_allrust-analyzer cargo tokio 1.49.0 runtime/builder/impl#[Builder]enable_all().(); |
| 12 | |
| 13 | 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); |
| 14 | 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 || { |
| 15 | 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().() |
| 16 | .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().::<()>()); |
| 17 | }); |
| 18 | |
| 19 | pyo3_async_runtimesrust-analyzer cargo pyo3-async-runtimes 0.28.0 crate/::tokiorust-analyzer cargo pyo3-async-runtimes 0.28.0 tokio/::runrust-analyzer cargo pyo3-async-runtimes 0.28.0 tokio/run().(py, pyo3_async_runtimesrust-analyzer cargo pyo3-async-runtimes 0.28.0 crate/::testingrust-analyzer cargo pyo3-async-runtimes 0.28.0 testing/::mainrust-analyzer cargo pyo3-async-runtimes 0.28.0 testing/main().()) |
| 20 | }) |
| 21 | } |