Put Future trait into spotlight
This commit is contained in:
parent
f66e4697ae
commit
102436d16a
@ -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…
x
Reference in New Issue
Block a user