From 5ea51c3f0ba6385699a9eaf0b8823f908a906c80 Mon Sep 17 00:00:00 2001 From: Nihaal Sangha Date: Thu, 28 Apr 2022 23:36:04 +0100 Subject: [PATCH] Fix typo in README (#1533) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d3899510..c6bb3875 100644 --- a/README.md +++ b/README.md @@ -309,7 +309,7 @@ Here is an example (from https://github.com/AlexxxRu/TinyPomodoro): ### How do I use egui with `async`? -If you call `.await` in your GUI code, the UI will freeze, with is very bad UX. Instead, keep the GUI thread non-blocking and communicate with any concurrent tasks (`async` tasks or other threads) with something like: +If you call `.await` in your GUI code, the UI will freeze, which is very bad UX. Instead, keep the GUI thread non-blocking and communicate with any concurrent tasks (`async` tasks or other threads) with something like: * Channels (e.g. [`std::sync::mpsc::channel`](https://doc.rust-lang.org/std/sync/mpsc/fn.channel.html)). Make sure to use [`try_recv`](https://doc.rust-lang.org/std/sync/mpsc/struct.Receiver.html#method.try_recv) so you don't block the gui thread! * `Arc>` (background thread sets a value; GUI thread reads it) * [`poll_promise::Promise`](https://docs.rs/poll-promise) (example: [`examples/download_image/`](https://github.com/emilk/egui/blob/master/examples/download_image/))