Skip to content
This repository was archived by the owner on Jul 15, 2019. It is now read-only.

Added start/end events for Arrow#183

Open
sudocode wants to merge 2 commits intoYahooArchive:masterfrom
sudocode:start-end-events
Open

Added start/end events for Arrow#183
sudocode wants to merge 2 commits intoYahooArchive:masterfrom
sudocode:start-end-events

Conversation

@sudocode
Copy link
Copy Markdown

This will allow a developer to implement hooks for setting up and tearing down resources (such as VM allocation, etc).

var arrow = new Arrow;
arrow.on('start', function() { alert('started'); });
arrow.on('end', function() { alert('ended'); });
arrow.run();

@pranavparikh
Copy link
Copy Markdown

@sudocode ,
Thanks for the PR.
How do you plan to implement hooks ? Do you have an example ?

@pranavparikh
Copy link
Copy Markdown

@sudocode As we discussed last, the idea is to allow using Arrow as a library. I'm will test it a bit before taking in the PR.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants