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 5c1bf5b commit 47a3ea1Copy full SHA for 47a3ea1
packages/hooks/src/use_waker.rs
@@ -50,20 +50,6 @@ impl<T: Clone + 'static> UseWaker<T> {
50
}
51
52
53
-// Can await the waker to be woken.
54
-// We use `.peek()` here to avoid reacting to changes in the underlying task_rx which could lead
55
-// to an effect/future loop.
56
-impl<T: Clone + 'static> std::future::Future for UseWaker<T> {
57
- type Output = Result<T, Canceled>;
58
-
59
- fn poll(
60
- self: std::pin::Pin<&mut Self>,
61
- cx: &mut std::task::Context<'_>,
62
- ) -> std::task::Poll<Self::Output> {
63
- self.task_rx.peek().clone().poll_unpin(cx)
64
- }
65
-}
66
67
impl<T> Copy for UseWaker<T> {}
68
impl<T> Clone for UseWaker<T> {
69
fn clone(&self) -> Self {
0 commit comments