Skip to content
This repository has been archived by the owner on Jan 15, 2021. It is now read-only.

Add a lifecyle API or a callback to detect/be notified when the engine has finished processing a script. #10

Open
enricogior opened this issue Oct 21, 2016 · 2 comments
Assignees

Comments

@enricogior
Copy link
Member

enricogior commented Oct 21, 2016

The current implementation allows to determine if the engine has finished processing a script only if the script is guarantee to be synchronous.
We need a way to detect when an async script has exit the loop.

@enricogior
Copy link
Member Author

One subtask is to trap the process.exit call in the test script, since it currently stops the jxcore engine so that it doesn't process the next test.
Quick fix for now: global automated replace of process.exit with return.

@enricogior
Copy link
Member Author

Worked is finished, calling process.exit is not anymore an issue and it's handled correctly.
The code will be push along with other tasks regarding the restart-able thread.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant