While We Await: Python, Tokio, and Async Python-Rust Interop
Nov 15, 2026What happens while an asynchronous operation is waiting? This presentation follows
network I/O from Python thread pools through asyncio and Rust’s Tokio runtime,
then connects the two runtimes with pyo3-async-runtimes.
It builds on the Python–Rust theme of The Rust Invasion,
this time looking at what happens underneath an await and how two independent
runtimes pass work and results between them.
Slides
Open the full presentation for keyboard navigation and full-screen viewing.
Download the slides as a PDF for offline reading.
What the talk covers
- Overlapping network waits with threads and asyncio.
- Event loops, I/O readiness, and task wakeups.
- Rust futures, wakers, and Tokio’s I/O driver.
- Bridging Python and Rust, including results, failures, and cancellation.
The presentation is also available on TNHC Data Systems.