Awesome Lists

p-whilst

by sindresorhus

JavaScriptpushed almost 2 years ago

While a condition returns true, calls a function repeatedly, and then resolves the promise

AI summary

Async loop

An implementation of an async while loop that repeatedly executes a function until a condition is met or fails

stars
54
forks
9
watching
7
awesome list
1
View on GitHub

Embed the badge

Show how many awesome lists link to your project. The count updates automatically.

Awesome Lists badge
Markdown
[![Awesome Lists Badge](https://awesome.facts.dev/shield/sindresorhus/p-whilst/links.svg)](https://awesome.facts.dev/awesome/sindresorhus/p-whilst)
HTML
<a href="https://awesome.facts.dev/awesome/sindresorhus/p-whilst"><img src="https://awesome.facts.dev/shield/sindresorhus/p-whilst/links.svg" alt="Awesome Lists Badge" /></a>
Image URL
https://awesome.facts.dev/shield/sindresorhus/p-whilst/links.svg

Add a GitHub project

Missing a project or an awesome list? Paste its GitHub URL and we fetch it right away.