Closed safareli closed 8 years ago
Adopted from #32
Sooo much nicer @safareli thanks!
@robotlolita shall we pull the trigger here?
Welcome! I started using Task
after your classroom coding videos so thank you too!
@robotlolita could you take a look at this PR
Sorry for taking so long to review :<
Anyway, just needs fixing the issue with reject
and it's good to merge :)
(I also just realised this project doesn't have unit tests. I'll try to fix it this weekend, if I have some time)
@robotlolita fixed that issues you pointed out:
resolve
is not called if Task is rejected
reject
is called onceThankies :)
Edit: It's released in v3.1.0
Nice :3
If you have Array of Tasks and want transform it into Task of Array using traverse or sequence, tasks will be forked sequentially instead of parallel. The reason is that
ap
is implemented using sequentialchain
method. Here it is rewritten to be parallel.