Skip to main content

set_callback

Function set_callback 

Source
pub fn set_callback(cb: Option<Py<PyAny>>)
Expand description

Register/replace the callback and re-deliver the current cursor to it. None withdraws it, releasing what the callback holds: the slot is process-wide and outlives the capture that set it, so a consumer that is going away has no other way to let go.