Skip to content

doWhilst documentation #1107

Closed
Closed
@DominicBoettger

Description

@DominicBoettger

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions