event

Function event 

Source
pub fn event() -> Result<(Waker, PyEvent), Error>
Expand description

Create a new event, returning the (Rust only) Waker, and a Python PyEvent, intended for passing to Python code.