diff --git a/ctru-rs/examples/futures-tokio-basic.rs b/ctru-rs/examples/futures-tokio-basic.rs index 423a45f..60753a2 100644 --- a/ctru-rs/examples/futures-tokio-basic.rs +++ b/ctru-rs/examples/futures-tokio-basic.rs @@ -26,15 +26,15 @@ fn main() { .expect("Couldn't build runtime"); let runtime_thread = ctru::thread::Builder::new() + // Run on the system core .affinity(1) + // Use a bigger stack size. Default is 0x1000 but we'd easily overflow that. .stack_size(0x200000) .spawn(move || { runtime.block_on(async move { - println!("Start of future"); let mut wake_time = tokio::time::Instant::now() + Duration::from_secs(1); let mut iteration = 0; loop { - println!("Start of loop"); let sleep_future = tokio::time::sleep_until(wake_time); tokio::select! {