GitShow/sindresorhus/p-race
sindresorhus

p-race

A better `Promise.race()`

by sindresorhus
Star on GitHubForknpm

JavaScript

52 stars6 forks4 contributorsQuiet · 3y agoSince 2016v3.1.0MIT

Meet the team

See all 4 on GitHub →
sindresorhus
sindresorhus8 contributions
BendingBender
BendingBender2 contributions
jopemachine
jopemachine1 contribution
Richienb
Richienb1 contribution

Languages

View on GitHub →
JavaScript82.7%
TypeScript17.3%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

4 of 6 standards met

Community profile →
71
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template

Recent fixes

View closed PRs →
fregante
Also cancel remaining promisesClosedIssue

It kind of irks me that the default for races is to just let everything continue even when the race ended. What do you think about also calling to the promises that are running?

fregante · 3y ago
jopemachine
Cancel remaining promises using abort signalMergedPR

Fixes #4. Notes 1. I made to using union, to not break existing code. 2. I think would be not a good name, but I use the name to try to simplify the type code. 3. If AbortController not exist on globalThis, argument will be .

jopemachine · 3y ago
Richienb
Move to GitHub ActionsMergedPR
Richienb · 5y ago
Structured data for AI agents

Repository: sindresorhus/p-race. Description: A better `Promise.race()` Stars: 52, Forks: 6. Primary language: JavaScript. Languages: JavaScript (82.7%), TypeScript (17.3%). License: MIT. Latest release: v3.1.0 (3y ago). Open PRs: 0, open issues: 0. Last activity: 3y ago. Community health: 71%. Top contributors: sindresorhus, BendingBender, jopemachine, Richienb.

·@ofershap

Replace github.com with gitshow.dev