☰
Debian Codegraph
@
0.3.6-1
/
/
tests
/
ui
/
yield_in_closure.rs
☽
☼
tests/ui/yield_in_closure.rs
code
plain
raw
MIT
2019-2023 Tokio Contributors <
[email protected]
>; 2019 Carl Lerche <
[email protected]
>; 2018 David Tolnay <
[email protected]
>
debian/copyright
1
use async_stream::stream;
2
3
fn main() {
4
stream! {
5
Ok("value")
6
.and_then(|v| {
7
yield v;
8
Ok(())
9
});
10
};
11
}