non blocking async

This commit is contained in:
DecDuck
2024-10-11 15:57:20 +11:00
parent f88fd2a016
commit 3e68f0524e
2 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ pub fn call_alt_thread_func(callback: JsFunction) -> Result<(), Error> {
})?;
let tsfn = tsfn.clone();
thread::spawn(move || {
tsfn.call(Ok(0), ThreadsafeFunctionCallMode::Blocking);
tsfn.call(Ok(0), ThreadsafeFunctionCallMode::NonBlocking);
});
Ok(())
}