use std::time::Duration; fn main() -> Result<(), Box> { jive::block_on(async move { println!("hewwo"); let handles = (1..=50) .map(|i| { jive::spawn_blocking(move || { std::thread::sleep(Duration::from_secs(2)); println!("{} blocked", i); }) }) .collect::>(); for handle in handles { handle.await?; } Ok(()) }) }