Skip to content

Commit bfb4b9c

Browse files
doc(alias) pending() to never (#2613)
It can be legitimately to look for the future that _never_ resolves using the name `never`. This PR ensures `pending()` shows up when making such queries.
1 parent 183f8c6 commit bfb4b9c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

futures-util/src/future/pending.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ impl<T> FusedFuture for Pending<T> {
3333
/// unreachable!();
3434
/// # });
3535
/// ```
36+
#[cfg_attr(docsrs, doc(alias = "never"))]
3637
pub fn pending<T>() -> Pending<T> {
3738
assert_future::<T, _>(Pending { _data: marker::PhantomData })
3839
}

0 commit comments

Comments
 (0)