Add a ThreadPool async executor to State

If we need to use simple async code in a few places, a single executor
may be better than having several threads blocking on async code.

This should probably use the calloop executor, but that's had issues in
cosmic-workspaces, though that may not apply here.
This commit is contained in:
Ian Douglas Scott 2025-06-17 17:40:13 -07:00 committed by Ian Douglas Scott
parent f0bab4a40b
commit 8455869439
3 changed files with 5 additions and 0 deletions

1
Cargo.lock generated
View file

@ -833,6 +833,7 @@ dependencies = [
"cosmic-text",
"egui",
"egui_plot",
"futures-executor",
"i18n-embed",
"i18n-embed-fl",
"iced_tiny_skia",