egui/examples/external_eventloop_async
Emil Ernerfeldt d50287b83c
Add `taplo.toml` for toml formatting (#7618)
2025-10-09 15:38:00 +02:00
..
src Enable more clippy lints (#7418) 2025-08-05 19:47:26 +02:00
Cargo.toml Add `taplo.toml` for toml formatting (#7618) 2025-10-09 15:38:00 +02:00
README.md Add external eventloop support (#6750) 2025-04-29 12:09:23 +02:00

README.md

Example running an eframe application on an external eventloop on top of a tokio executor on Linux.

By running the event loop, eframe, and tokio in the same thread, one can leverage local async tasks. These tasks can share data with the UI without the need for locks or message passing.

In tokio CPU-bound async tasks can be run with spawn_blocking to avoid impacting the UI frame rate.

cargo run -p external_eventloop_async --features linux-example