races

Similar to Promise.race but allows to specify how many promises to wait for.

Example