Dismiss
  • Scroll up
  • Toggle Theme
  • View as Mobile

@davidwells/wait-for

@davidwells/wait-for is a polling utility for waiting on asynchronous systems with configurable retry logic, timeouts, cancellation, callbacks, and backoff.

It came from real integration work where transient failures and eventual consistency made one-off retry code hard to maintain.

Why it matters

Distributed systems often need to wait for something to become true: a service comes online, a device finishes provisioning, a queue drains, or an API becomes consistent. This package makes those waits explicit and reusable.