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

Reference implementation #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

AlicanC
Copy link

@AlicanC AlicanC commented Jun 2, 2016

I've created a reference implementation for this. Code is linted with ESLint (w/ Airbnb rules), compiled with Babel (w/ "es2015" preset) and tested with Jest. (Tests are a bit weak, could be extended later.)

Doing this was easy since this spec doesn't define any new syntax. More work will be required if @domenic's throw cancel / catch cancel is incorporated to this spec.

Creating a reference implementation might look unnecessary at this time, but I really need this functionality in my projects. So instead of coming up with my own solution, I decided to implement this spec.

I will be using this in a few React components where I start an async task in componentDidMount() which I have to cancel when componentWillReceiveProps() or componentWillUnmount() is called.

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.

1 participant