We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd2ab18 commit de415e8Copy full SHA for de415e8
wgpu/src/api/device.rs
@@ -715,23 +715,6 @@ mod waker {
715
RawWaker::new(null(), &NOOP_WAKER_VTABLE)
716
}
717
718
- /// Create a new [`Waker`] which does
719
- /// nothing when `wake()` is called on it.
720
- ///
721
- /// # Examples
722
723
- /// ```
724
- /// use futures::task::noop_waker;
725
- /// let waker = noop_waker();
726
- /// waker.wake();
727
728
- #[inline]
729
- #[allow(unused)]
730
- pub fn noop_waker() -> Waker {
731
- // FIXME: Since 1.46.0 we can use transmute in consts, allowing this function to be const.
732
- unsafe { Waker::from_raw(noop_raw_waker()) }
733
- }
734
-
735
/// Get a static reference to a [`Waker`] which
736
/// does nothing when `wake()` is called on it.
737
///
0 commit comments