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

Task documentation and some convenience methods #112

Merged
merged 17 commits into from
Apr 9, 2017
Merged

Conversation

robotlolita
Copy link
Member

This patch adds the long overdue documentation for Task (Future/Deferred docs are still pending). It also adds some convenience function/methods:

  • waitAll([a, b, c...]) for a.and(b).and(c).... Also normalises the resulting array;
  • waitAny([a, b, c...]) for a.or(b).or(c)...;
  • a.orElse(x => b) as the equivalent of .chain() for rejected tasks.
  • a.mapRejected(x => y) as the equivalent of .map() for rejected tasks.

Thanks to @justin-calleja for the work on type annotations and editing suggestions on parts of the docs.

This closes #77, closes #94, and closes #107.

@ghost ghost assigned robotlolita Apr 9, 2017
@ghost ghost added the in progress label Apr 9, 2017
@robotlolita robotlolita merged commit d5d5009 into master Apr 9, 2017
@ghost ghost removed the in progress label Apr 9, 2017
@robotlolita robotlolita deleted the patch/task-docs branch April 9, 2017 00:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Document Data.Task
2 participants