MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / poll_wait_signaled

Function poll_wait_signaled

nodedb/src/data/eventfd.rs:154–160  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

152
153 #[test]
154 fn poll_wait_signaled() {
155 let efd = EventFd::new().unwrap();
156 let notifier = efd.notifier();
157
158 notifier.notify();
159 assert!(efd.poll_wait(100));
160 }
161
162 #[test]
163 fn notifier_is_send_sync() {

Callers

nothing calls this directly

Calls 2

notifierMethod · 0.80
notifyMethod · 0.45

Tested by

no test coverage detected