Should make things a bit clearer and improve rust-analyzer diagnostics for the event_loop function.
XDFSAPI75FQXHD3ZMYBEGROQ35VQC3WQFQ5EJQAWUXTCKR2N62LAC std::thread::spawn(|| event_loop(threadsafe_functions, receiver));
let runtime = tokio::runtime::Runtime::new().map_err(|error| {napi::Error::from_reason(format!("Failed to create Tokio runtime: {error}"))})?;std::thread::spawn(move || runtime.block_on(event_loop(threadsafe_functions, receiver)));