-
-
Notifications
You must be signed in to change notification settings - Fork 12
Closed
Description
use std::thread;
use napi_derive::napi;
pub fn panic123() {
panic!("123")
}
#[napi]
pub fn test() {
println!("{:?}", thread::spawn(|| panic123()).join());
}- The main js thread is waiting for the child thread with
.join - Child thread gets panic and throws error in the js side
worker.onerrorcannot be executed since the main thread is stuck
const handleError = function (e: Event | Error): void {
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels