Module pyo3_asyncio::tokio[][src]

Expand description

tokio-runtime PyO3 Asyncio functions specific to the tokio runtime

Modules

re_exports

attributes re-exports for macros

Functions

get_runtime

Get a reference to the current tokio runtime

init

Initialize the Tokio Runtime with a custom build

init_current_thread

Initialize the Tokio Runtime with current-thread scheduler

init_current_thread_once

Ensure that the Tokio Runtime is initialized

init_multi_thread

Initialize the Tokio Runtime with the multi-thread scheduler

init_multi_thread_once

Ensure that the Tokio Runtime is initialized

into_coroutine

Convert a Rust Future into a Python awaitable

local_future_into_py

Convert a !Send Rust Future into a Python awaitable

run_until_complete

Run the event loop until the given Future completes

Attribute Macros

main

attributes

test

attributes testing Registers a tokio test with the pyo3-asyncio test harness