Skip to content
Discussion options

You must be logged in to vote

In that case you should look at using an instance of quickjsruntimeadapter in your own thread.

You can't really advance for x microseconds/steps but there an interrupt handler but that only enables you to stop execution, not resume it.
Also all async tasks are added to a pending_tasks queue which you can execute per job when you want (rt.has_pending_jobs/rt.run_pending_job).

You will also need to redefine or disable some features like setTimeout which depends on my EventLoop.

Running async rust code will still use the extra tokio runtime, but I've been wanting to fix that, do you use tokio or a different async runtime?

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by lquerel
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants