Rollup merge of #58606 - stjepang:put-future-into-spotlight, r=alexcrichton
Docs: put Future trait into spotlight If a function returns a type that implements `Future`, there should be a small "i" symbol next to it indicating the return type implements an important trait.
This commit is contained in:
commit
b28a32fba7
1 changed files with 1 additions and 0 deletions
|
@ -24,6 +24,7 @@ use task::{Poll, Waker};
|
||||||
///
|
///
|
||||||
/// When using a future, you generally won't call `poll` directly, but instead
|
/// When using a future, you generally won't call `poll` directly, but instead
|
||||||
/// `await!` the value.
|
/// `await!` the value.
|
||||||
|
#[doc(spotlight)]
|
||||||
#[must_use = "futures do nothing unless polled"]
|
#[must_use = "futures do nothing unless polled"]
|
||||||
pub trait Future {
|
pub trait Future {
|
||||||
/// The type of value produced on completion.
|
/// The type of value produced on completion.
|
||||||
|
|
Loading…
Reference in a new issue