G

drop ( ... ) тоже ничего не делает.
Size: a a a
G

D
D
G
D
D
П
G
D
D
G
G
D
use std::time::Duration;
fn main() {
let rt = tokio::runtime::Builder::new_current_thread()
.enable_all()
.build()
.unwrap();
let _guard = rt.enter();
let task = async {
std::fs::create_dir("/tmp/tokiodir").unwrap();
println!("created");
};
rt.spawn(task);
rt.block_on(tokio::time::sleep(Duration::from_secs(1)));
}
П
D
G
D
П
D
pub fn block_on<F: Future>(&self, future: F) -> F::OutputП