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

Add race helpers #23

Open
alfonsogarciacaro opened this issue Sep 24, 2021 · 0 comments
Open

Add race helpers #23

alfonsogarciacaro opened this issue Sep 24, 2021 · 0 comments

Comments

@alfonsogarciacaro
Copy link
Member

alfonsogarciacaro commented Sep 24, 2021

See MDN. We could have something like:

let race2 (pr1: 'T1) (pr2: 'T2): Promise<Choice<'T1, 'T2>>
let race3 (pr1: 'T1) (pr2: 'T2) (pr3: 'T3): Promise<Choice<'T1, 'T2, 'T3>>
..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant