fn _notify_on_descriptor<C>(
fd: i32,
mode: NotifyMode,
run_in_thread: bool,
callback: Option<C>,
)where
C: Fn() + 'static,
Expand description
Set a callback whenever a specific IO event occurs on the host on a given file descriptor.
If callback
is None
, the callback is removed.
§Context
Cell Context
Callback: Threaded Context if run_in_thread
, Global Context otherwise