1
2
3
4
5
6
7
8
use async_trait::async_trait;

#[async_trait]
pub trait AsyncIterator {
    type Item;

    async fn next(&mut self) -> Option<Self::Item>;
}