pub trait PyFuture: Send {
// Required method
fn poll_py(
self: Pin<&mut Self>,
py: Python<'_>,
cx: &mut Context<'_>,
) -> Poll<PyResult<PyObject>>;
}
Expand description
GIL-bound Future
.
Provided with a blanket implementation for Future
. GIL is maintained during polling
operation. To release the GIL, see AllowThreads
.