deno_core
deno_core copied to clipboard
Run runtime async?
I'm currently making my own little js-environment based on deno-core. My goal is to let the user modify the UI from the JS. When I use the code from the examples, the runtime is executed blocking. Ho can I change that? Could you add an example?
Could you explain a bit more what you are trying to achieve? JsRuntime is meant to be used from async contexts and all examples do that. In Rust when you have some async operations going on they need to "block" at least at the top level and that's what the examples are showcasing.
I want to run a Gtk4-app and a JS-Runtime at the same time. It is possible to run the JS-Runtime not blocking and then run the GTK-app blocking?
To be honest, I'm not sure - do you use Tokio in your app?
I'm doing the same as in this example.