2024-02-22 12:10:29 +00:00
|
|
|
//@ edition: 2021
|
2023-12-19 22:17:10 +11:00
|
|
|
|
2024-09-06 15:41:10 +10:00
|
|
|
//@ aux-build: executor.rs
|
|
|
|
extern crate executor;
|
|
|
|
|
2023-12-19 22:17:10 +11:00
|
|
|
fn main() {
|
|
|
|
for i in 0..16 {
|
|
|
|
let future = async {
|
|
|
|
if i >= 12 {
|
|
|
|
println!("big");
|
|
|
|
} else {
|
|
|
|
println!("small");
|
|
|
|
}
|
|
|
|
};
|
|
|
|
executor::block_on(future);
|
|
|
|
}
|
|
|
|
}
|