Skip to content

Feature request: asyncTake() #23

@sloonz

Description

@sloonz

Now that promises and await/async are standard in the node ecosystem, I could be nice to have an async function like this directly integrated in the library :

await sem.asyncTake();

// I'm currently doing it like this:
const asyncTake = sem => new Promise((resolve, reject) => sem.take(resolve));

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