Awesome Lists

p-wait-for

by sindresorhus

JavaScriptpushed over 3 years ago

Wait for a condition to be true

AI summary

Waiter

A utility function to wait for a condition to be true while allowing for customizable timeout options and fallback behavior.

stars
155
forks
19
watching
8
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-wait-for/links.svg)](https://awesome.facts.dev/awesome/sindresorhus/p-wait-for)
HTML
<a href="https://awesome.facts.dev/awesome/sindresorhus/p-wait-for"><img src="https://awesome.facts.dev/shield/sindresorhus/p-wait-for/links.svg" alt="Awesome Lists Badge" /></a>
Image URL
https://awesome.facts.dev/shield/sindresorhus/p-wait-for/links.svg

Add a GitHub project

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