Skip to content

Returning promise from non-async function doesn't work #1733

Closed
@sergejostir

Description

@sergejostir

What version of async are you using?
3.2.0

Which environment did the issue occur in (Node/browser/Babel/Typescript version)
Node

What did you do? Please include a minimal reproducible case illustrating issue.

async.waterfall([
  () => Promise.resolve(),
  async () => {
    console.log('not called');
  },
]);

What did you expect to happen?
I would expect this snippet to work properly. Async function is just a normal function that 100% returns Promise. If I return promise from the non-async function the result is exactly the same, so I do not understand why async package fails in this case.

What was the actual result?
The code did not execute properly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions