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

feat: support async hooks #390

Merged
merged 1 commit into from
Jul 5, 2019
Merged

feat: support async hooks #390

merged 1 commit into from
Jul 5, 2019

Conversation

achingbrain
Copy link
Member

A common use of hooks in aegir is to start and stop an ipfs node for browser tests to run against.

Since they all use ipfsd-ctl and that is moving to async/await in ipfs/js-ipfsd-ctl#353 as part of ipfs/js-ipfs#1670, it would be nice to not have to mix async and callbacks in the hooks.

This PR adds support for async hooks while not breaking existing callback based ones.

A common use of hooks in aegir is to start and stop an ipfs node for
browser tests to run against.

Since they all use ipfsd-ctl and that is moving to async/await in
ipfs/js-ipfsd-ctl#353 as part of ipfs/js-ipfs#1670, it would be
nice to not have to mix async and callbacks in the hooks.

This PR adds support for async hooks while not breaking existing
callback based ones.
@achingbrain achingbrain requested a review from hugomrdias July 5, 2019 09:39
@hugomrdias hugomrdias merged commit 717f888 into master Jul 5, 2019
@hugomrdias hugomrdias deleted the support-async-hooks branch July 5, 2019 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants