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

doWhilst documentation #1107

Closed
DominicBoettger opened this issue Apr 13, 2016 · 1 comment
Closed

doWhilst documentation #1107

DominicBoettger opened this issue Apr 13, 2016 · 1 comment
Labels

Comments

@DominicBoettger
Copy link

Hello,

i had the problem that i was not able to use the current element in doWhilst following the API documentation.

Then i tried the following:

js
async.doWhilst((callback) => {
  let res = execHandler.next();
  callback(null, res);
}, (res) => {
  return !res.done;
}, (err) => {
  if (err) {
    console.log(err);
  }
});

And it worked very well. Is this allowed? Because the API documentation says that there is no input element in the test function.....

Best regards
Dominic

@aearly
Copy link
Collaborator

aearly commented Apr 25, 2016

Sounds like a doc mistake.

@aearly aearly closed this as completed in dbba021 May 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants