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

Enforce always passing promise to race function #207

Open
wants to merge 1 commit into
base: 3.x
Choose a base branch
from

Commits on Jan 17, 2022

  1. Enforce always passing promise to race function

    The race function has always supported passing an empty array of promises/values into it. And then defaulted to the behavior of returning an ever waiting promise. While this makes sense from a mathematical perspective, it doesn't from a developers' perspective.
    
    To enforce always having to pass in a promise, the first argument is now required, and any following promises are accepted using a variadic function argument.
    WyriHaximus committed Jan 17, 2022
    Configuration menu
    Copy the full SHA
    8afabb7 View commit details
    Browse the repository at this point in the history