GitShow/sindresorhus/p-wait-for
sindresorhus

p-wait-for

Wait for a condition to be true

by sindresorhus
Star on GitHubForknpm

JavaScript

169 stars20 forks8 contributorsQuiet · 11mo agoSince 2016v6.0.0MIT

Meet the team

See all 8 on GitHub →
sindresorhus
sindresorhus25 contributions
Richienb
Richienb5 contributions
ronami
ronami3 contributions
BendingBender
BendingBender2 contributions
bcomnes
bcomnes1 contribution
jopemachine
jopemachine1 contribution
henhal
henhal1 contribution

Languages

View on GitHub →
JavaScript96.6%
TypeScript3.4%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

4 of 6 standards met

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

Recent fixes

View closed PRs →
ronami
Add support for aborting with `AbortSignal`MergedPR

Summary This PR add support for aborting re-tries with an . This is similar to how it's being handled on other packages like https://github.com/sindresorhus/p-retry and https://github.com/sindresorhus/p-timeout. This is necessary because currently there's no way to stop the polling other than returning (which may need different handling than when the resolves with ). This PR is currently failing on CI because of an unrelated issue, I described it here along with a potential way of fixing it.

ronami · 11mo ago
fisker
Idea: Use argument instead of `pWaitFor.resolveWith`ClosedIssue

fisker · 11mo ago
Dijir
Support ESMClosedIssue

Error [ERR_REQUIRE_ESM]: require() of ES Module ... is not supported

Dijir · 3y ago
Structured data for AI agents

Repository: sindresorhus/p-wait-for. Description: Wait for a condition to be true Stars: 169, Forks: 20. Primary language: JavaScript. Languages: JavaScript (96.6%), TypeScript (3.4%). License: MIT. Latest release: v6.0.0 (11mo ago). Open PRs: 0, open issues: 0. Last activity: 11mo ago. Community health: 85%. Top contributors: sindresorhus, Richienb, ronami, BendingBender, bcomnes, jopemachine, henhal.

·@ofershap

Replace github.com with gitshow.dev