diff --git a/book/src/main_event_loop.md b/book/src/main_event_loop.md index dd964870b882..6a5c47dcb20d 100644 --- a/book/src/main_event_loop.md +++ b/book/src/main_event_loop.md @@ -37,7 +37,7 @@ but frequently, we want to run a slightly longer operation in one go. ## How to Avoid Blocking the Main Loop -In order to avoid blocking the main loop, we can spawn a new task with [`gio::spawn_blocking`](https://gtk-rs.org/gtk-rs-core/stable/latest/docs/gio/fn.spawn_blocking.html) and let the operation run there. +In order to avoid blocking the main loop, we can spawn a new task with [`gio::spawn_blocking`](https://gtk-rs.org/gtk-rs-core/stable/latest/docs/gio/fn.spawn_blocking.html) and let the operation run on the thread pool. Filename: listings/main_event_loop/2/main.rs