Viewing 1 post (of 1 total)
- AuthorPosts
- August 4, 2024 at 7:46 am #29897Patrick CParticipant
Caused by a V8 macro executing a second V8 macro synchronously.
Example code:
#language = "V8" #async = "off" editor.ExecuteMacro("runner.jsee", eeRunFile | eeMacroSyncOnly);
executes
#language = "V8" #async = "off" OutputBar.writeln("Hi there I’m runner!");
Removing the
eeMacroSyncOnly
flag does not raise an error but I`ll end up in a race condition. My application requires the first macro to wait until the second macro ends.What works and doesn’t is:
✔️ JScript executing JScript synchronously
✔️ JScript executing V8 synchronously
✔️ V8 executing JScript synchronously
❌ V8 executing V8 synchronously 😞Question:
Is there an alternative way to wait for the second script to end (e.g. a semaphore)?Note that for my particular application #include is not an option.
- AuthorPosts
Viewing 1 post (of 1 total)
- You must be logged in to reply to this topic.