futures-async-stream
futures-async-stream copied to clipboard
Async stream for Rust and the futures crate.
Currently, procedural macros provided by futures-async-stream cannot handle expressions in macros. https://github.com/rust-lang-nursery/futures-rs/pull/1548#discussion_r285341883: > It is not possible to replace `.await` in macros such as `assert!(foo.await)` with this. > > Full...
#41 has postponed the removal of `*stream_block!` macros because of some concerns. * format issue: > Given that rustfmt doesn't format `#[stream] async {}` on `let` so nicely, I'm wondering...
https://github.com/rust-lang/futures-rs/pull/1548#issuecomment-486205382
Got compiling error on below code: ```rust pub fn chained_stream() -> impl Stream { #[stream] async { yield 1; } .map(|d| d * 2) } ``` ``` error: unexpected token...