Skip to content

awaitRace does not really race() #6

Description

@clue

The currently implementation of awaitRace($promises) essentially works like this:

awaitOne(Promise\any($promises))

The naming implies this might call the equivalent of this:

awaitOne(Promise\race($promises))

IMO both have valid use cases and might be worth implementing.

See also #5 for some background on the functional API.

At the very least, this needs some documentation. A better method name would also be appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is neededquestionFurther information is requested

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions