pyo3 0.18.0

Bindings to Python interpreter
Documentation
1
2
3
4
5
6
7
8
9
10
11
use pyo3::prelude::*;

fn test_not_send_allow_threads(py: Python<'_>) {
    py.allow_threads(|| { drop(py); });
}

fn main() {
    Python::with_gil(|py| {
        test_not_send_allow_threads(py);
    })
}