Using Deno core in an app that already had its own tokio runtime
I am using the deno_core and deno_ast crates to "Roll my own JavaScript runtime", as seen here (https://github.com/denoland/roll-your-own-javascript-runtime/blob/main/src/main.rs#L153-L159 ), but I don't know how to launch my deno runtime properly within my existing tokio runtime.
I've tried using a
But the moment I execute the example script, it fails at
I end up with output like below:
I've tried using a
Handle and spawning a thread and using block_on, like below:But the moment I execute the example script, it fails at
setTimeout.I end up with output like below:
GitHub
Contribute to denoland/roll-your-own-javascript-runtime development by creating an account on GitHub.