Desktop: Use tokio async runtime (#3704)

Use tokio because hyper needs it
This commit is contained in:
Timon
2026-02-02 12:49:15 +01:00
committed by GitHub
parent da518857ad
commit 5ace2c9660
4 changed files with 5 additions and 2 deletions

View File

@@ -70,8 +70,9 @@ impl App {
let rendering_app_event_scheduler = app_event_scheduler.clone();
let (start_render_sender, start_render_receiver) = std::sync::mpsc::sync_channel(1);
std::thread::spawn(move || {
let runtime = tokio::runtime::Runtime::new().unwrap();
loop {
let result = futures::executor::block_on(DesktopWrapper::execute_node_graph());
let result = runtime.block_on(DesktopWrapper::execute_node_graph());
rendering_app_event_scheduler.schedule(AppEvent::NodeGraphExecutionResult(result));
let _ = start_render_receiver.recv();
}