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

Added start/end events for Arrow #183

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Added start/end events for Arrow #183

wants to merge 2 commits into from

Conversation

sudocode
Copy link

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

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

@pranavparikh
Copy link

@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