1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-26 14:49:06 -04:00
Files
egui/examples/external_eventloop_async
Andreas Reich 4c1f344ef8 Update MSRV from 1.86 to 1.88 (#7579)
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
2025-10-02 19:12:29 +02:00
..
2025-08-05 19:47:26 +02:00

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