Add Task.onComplete
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 48
- Forks
- 14
- Avg merge
- 4h 14m
- Merged PRs (30d)
- 1
Description
onComplete : (Result err ok -> Task a b) -> Task err ok -> Task a b
Let's you handle the completion of a task, whether it failed or not.
Might be wise to rename andThen to onSuccess in this case.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the Task API and the existing andThen behavior, since the issue names no files or tests. Confirm how success and failure results are represented, then verify that completion handling accepts either result and returns the specified Task type.
Written by the indexing model from the issue text.
Assessment
- Domain
- backend-api-design
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100