wstd 0.6.6

An async standard library for Wasm Components and WASI 0.2
Documentation
1
2
3
4
5
6
7
8
9
10
//! Composable async iteration.

/// A trait for dealing with async iterators.
pub trait AsyncIterator {
    /// The type of the elements being iterated over.
    type Item;

    /// Advances the iterator and returns the next value.
    async fn next(&mut self) -> Option<Self::Item>;
}