From 80791241090055fee5d5ffd2d4e94556f5774b7f Mon Sep 17 00:00:00 2001 From: Hofer-Julian <30049909+Hofer-Julian@users.noreply.github.com> Date: Fri, 27 Oct 2023 13:12:04 +0200 Subject: [PATCH] Update book/src/main_event_loop.md Co-authored-by: Fina --- book/src/main_event_loop.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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