mirror of
https://github.com/Drop-OSS/droplet.git
synced 2025-11-17 10:11:17 +10:00
non blocking async
This commit is contained in:
@ -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(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user