☰
Debian Codegraph
@
0.3.6-1
/
/
tests
/
ui
/
yield_in_async.rs
☽
☼
tests/ui/yield_in_async.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
let f = async {
6
yield 123;
7
};
8
9
let v = f.await;
10
};
11
}