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