How to improve async function in shell-like program

30 views
Skip to first unread message

张航

unread,
Jul 3, 2023, 10:01:05 PM7/3/23
to v8-users
Hello guys,

Now I'm trying to embed v8 to my application, and allow user to run JS code, but the code is not organized in a file, it may be in pieces.
In other word, user can run code A, and after that, user can run code B.
My issue is if A includes a await for an async function, it may cost much time to start to run code B.

How can I deal with this? Currently I want to use multiple isolates to run different code, but I wonder if there is any proper way.

Thanks.
Reply all
Reply to author
Forward
0 new messages