log part is wrong. if you use externs like here "log" you would write log("hello"). but in your example you defined log but didnt use. you used the web-sys. with web-sys you write consele::log_1 etc. sorry for pointing out but didnt see a correction in the description.
How do threads, channels and exporting non blocking functions from Rust/wasm work? I know it's a pain with Nodejs+napi (thread safe functions and all that craziness) - can you accidentally block or deadlock the main JS thread from wasm like you can with Nodejs+napi?
Thanks for a great beginner episode 👌
log part is wrong.
if you use externs like here "log" you would write log("hello"). but in your example you defined log but didnt use. you used the web-sys. with web-sys you write consele::log_1 etc. sorry for pointing out but didnt see a correction in the description.
you're right, not sure why I did that
How do threads, channels and exporting non blocking functions from Rust/wasm work? I know it's a pain with Nodejs+napi (thread safe functions and all that craziness) - can you accidentally block or deadlock the main JS thread from wasm like you can with Nodejs+napi?
I'm finding hard that rust fn should call the ts function. I want to send json req from rust to '.ts' fn . is there any guide on that?