GitShow/sindresorhus/p-forever
sindresorhus

p-forever

Run promise-returning & async functions repeatedly until you end it

by sindresorhus
Star on GitHubForknpm

JavaScript

52 stars9 forks5 contributorsActive · 2w agoSince 2016v4.0.0MIT

Meet the team

See all 5 on GitHub →
sindresorhus
sindresorhus15 contributions
BendingBender
BendingBender2 contributions
Richienb
Richienb1 contribution
darky
darky1 contribution

Languages

View on GitHub →
JavaScript56%
TypeScript44%

Commit activity

Last 12 weeks · 1 commit

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 →
vladshcherbin
Add interval optionClosedIssue

Hey 👋 It would be nice to have an option to set interval between executions: I know can be used, but it doesn't look as nice: Additionally there might be some internal simple logic to not use interval if execution is aborted. Thank you!

vladshcherbin · 2w ago
franckchen
how about add a way to interrupt the loop from outside?ClosedIssue

Currently only provides a way to break the loop internally by return end symbol, It would be useful to provide a way to cancel the loop from outside like below. why i need to cancel a promise from outside? bcz code like below is stupid.😓

franckchen · 5mo ago
eole1712
Issue with export default & jestClosedIssue

Hello, Since 3.0.1 you're using syntax, which is valid only with es6. Since jest is not transforming by default node_modules, my tests are failing. Any idea how can I fix this without asking jest to transform node_modules ? Thanks

eole1712 · 5y ago
Structured data for AI agents

Repository: sindresorhus/p-forever. Description: Run promise-returning & async functions repeatedly until you end it Stars: 52, Forks: 9. Primary language: JavaScript. Languages: JavaScript (56%), TypeScript (44%). License: MIT. Latest release: v4.0.0 (5mo ago). Open PRs: 0, open issues: 0. Last activity: 2w ago. Community health: 71%. Top contributors: sindresorhus, BendingBender, Richienb, darky.

·@ofershap

Replace github.com with gitshow.dev