mirror of
https://github.com/rust-lang/rust
synced 2024-10-19 06:54:02 +00:00
Add Stream alias for AsyncIterator
This commit is contained in:
parent
2184c7c568
commit
8a75d55514
|
@ -12,6 +12,7 @@
|
|||
/// [impl]: index.html#implementing-async-iterator
|
||||
#[unstable(feature = "async_iterator", issue = "79024")]
|
||||
#[must_use = "async iterators do nothing unless polled"]
|
||||
#[doc(alias = "Stream")]
|
||||
pub trait AsyncIterator {
|
||||
/// The type of items yielded by the async iterator.
|
||||
type Item;
|
||||
|
|
Loading…
Reference in a new issue