Skip to content

Commit

Permalink
chore: recommend to use core lib's ready macro (#2925)
Browse files Browse the repository at this point in the history
Signed-off-by: tison <wander4096@gmail.com>
  • Loading branch information
tisonkun authored Feb 17, 2025
1 parent 048995a commit c9b796c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion futures-core/src/task/poll.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
/// Extracts the successful type of a `Poll<T>`.
/// Extracts the successful type of `Poll<T>`.
///
/// This macro bakes in propagation of `Pending` signals by returning early.
///
/// **Note:** Since Rust 1.64, this macro is soft-deprecated in favor of
/// [`ready!`](core::task::ready) macro in the standard library.
#[macro_export]
macro_rules! ready {
($e:expr $(,)?) => {
Expand Down

0 comments on commit c9b796c

Please sign in to comment.