MCPcopy Create free account
hub / github.com/base/base / noop_raw_waker

Function noop_raw_waker

crates/proof/proof/src/blocking_runtime.rs:32–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30 }
31 const fn noop(_: *const ()) {}
32 fn noop_raw_waker() -> RawWaker {
33 let vtable = &RawWakerVTable::new(noop_clone, noop, noop, noop);
34 RawWaker::new(core::ptr::null(), vtable)
35 }
36 // SAFETY: The waker is a no-op waker that does nothing. It is safe to construct from the
37 // raw waker as the vtable functions are valid no-ops.
38 let waker = unsafe { Waker::from_raw(noop_raw_waker()) };

Callers 2

noop_cloneFunction · 0.85
block_onFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected