The Wayback Machine - https://web.archive.org/web/20201126213101/https://github.com/substack/node-stackedy/issues/2
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can we know that an execution has finished ? #2

Open
temsa opened this issue Jan 20, 2012 · 0 comments
Open

How can we know that an execution has finished ? #2

temsa opened this issue Jan 20, 2012 · 0 comments

Comments

@temsa
Copy link

@temsa temsa commented Jan 20, 2012

I don't know how to handle this properly, I would like to now when the vm.runInNewContext has finished running, because I can run asynchronous code, so I just get the "result" as soon as the synchronous code has finished, but I do not know when will my asyncrhonous code has finished.

For now I can only use a timeout and use the stopppable property, without knowing if the execution was finished or not... I guess I can do it using a before or after filter, but I do not know how :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.