Created
January 22, 2019 19:15
-
-
Save hallettj/3a0a662a89a4220b91c4e88fdaca030d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// `Promise.race` specialized for two inputs. | |
// The real signature is more general than this. | |
function race<A, B>(inputs: [Promise<A>, Promise<B>]): Promise<A | B> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment