pass last result to while/until callback#963
Conversation
There was a problem hiding this comment.
Is there a reason to only pass on 1 argument instead of all the arguments that were passed to the cb?
For example waterfall passes on all the arguments from cb on to the next function.
incorporate @thanodnl suggestions to pass all args also tidy up the test changes
|
addressed @thanodnl 's suggestion, and tidied tests a bit. |
|
👍 |
|
👍 a nice enhancement. |
There was a problem hiding this comment.
A callback which is called after the test fails and repeated execution of
fnhas stopped. This will be passed the results of the last call tofn's callback.
This doesn't read so well, maybe
A callback which is called after the test function has failed and repeated execution of
fnhas stopped. Thecallbackwill be passed an error and any arguments passed to the finalfn's callback.
There was a problem hiding this comment.
Thanks, should have read that out loud first :)
Update coming.
pass last result to while/until callback
Addresses #962