neon-bindings/examples

Can the Function persist ?

xhsiung opened this issue · 3 comments

how do i do ?

Can you share a bit more about your use case? Functions exported on the module context will persist.

https://github.com/neon-bindings/examples/blob/master/hello-world/native/src/lib.rs

i want to call the thread another process in the Rust.
the process result emit to send the Event in the Javascript.
how to do that ?

Examples include using JsBox which can hold a JsFunction.