mirror of
https://github.com/Drop-OSS/droplet.git
synced 2025-11-10 04:22:16 +10:00
non blocking async
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@drop/droplet",
|
||||
"version": "0.4.2",
|
||||
"version": "0.4.3",
|
||||
"main": "index.js",
|
||||
"types": "index.d.ts",
|
||||
"napi": {
|
||||
|
||||
@ -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