fix: make LocalWake available in targets that don't support atomics by removing a #[cfg(target_has_atomic = ptr)]

This commit is contained in:
Tomás Vallotton
2023-12-06 15:19:24 -03:00
parent 403718b19d
commit 2012d4b703
3 changed files with 14 additions and 10 deletions

View File

@@ -347,7 +347,7 @@ impl<'a> ContextBuilder<'a> {
/// use std::task::{Waker, ContextBuilder};
/// use std::future::{poll_fn, Future};
/// use std::pin::pin;
///
///
/// async fn with_waker<F>(f: F, waker: &Waker) -> F::Output
/// where
/// F: Future
@@ -365,7 +365,7 @@ impl<'a> ContextBuilder<'a> {
/// f.as_mut().poll(&mut cx)
/// }).await
/// }
///
///
/// # async fn __() {
/// with_waker(async { /* ... */ }, &Waker::noop()).await;
/// # }