delay

Delay function

Allows delaying promises by a specified amount of time or a random range.

Delay a promise a specified amount of time

GitHub

609 stars
17 watching
36 forks
Language: JavaScript
last commit: over 3 years ago
Linked from 3 awesome lists


Backlinks from these awesome lists:

Related projects:

RepositoryDescriptionStars
sindresorhus/p-someWait for a specified number of promises to be fulfilled36
sindresorhus/p-deferProvides a promise that can be delayed to execute at a specific time or after another operation is completed.77
sindresorhus/p-wait-forA utility function to wait for a condition to be true while allowing for customizable timeout options and fallback behavior.155
sindresorhus/p-debounceDebounces promise-returning & async functions to delay their execution until after a specified wait period has elapsed since the last call.211
sindresorhus/p-eventPromises an event by waiting for it to be emitted, allowing asynchronous iteration and rejection handling.429
sindresorhus/p-timeA utility to measure the time taken by a promise to resolve70
sindresorhus/p-anyA utility function to wait for any of multiple promises to be fulfilled with cancellation support.55
sindresorhus/p-timeoutA utility function to decorate and manage timeouts on promises.275
sindresorhus/p-lazyA promise class that defers execution until the promise is actually used or specific methods are called269
sindresorhus/p-filterTool for filtering and concurrent execution of promises with an adjustable concurrency level75
sindresorhus/onetimeEnsures a function is only called once by wrapping it in a wrapper function that throws an error if called again162
sindresorhus/p-raceImproves Promise.race() by preventing infinite pending promises and adding support for aborting promises using AbortSignal.46
sindresorhus/p-tryA utility function to start a promise chain by executing a synchronous function safely58
sindresorhus/p-timesRuns promise-returning & async functions multiple times concurrently39
sindresorhus/p-allConcurrently execute multiple promise-returning functions with optional concurrency limits.319