sleep-promise

Delay function

A utility function that resolves a promise after a specified delay.

Resolves a promise after a specified delay.

GitHub

86 stars
2 watching
9 forks
Language: JavaScript
last commit: almost 2 years ago
Linked from 1 awesome list

javascriptpromise

Backlinks from these awesome lists:

Related projects:

RepositoryDescriptionStars
sindresorhus/delayAllows delaying promises by a specified amount of time or a random range.609
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-deferProvides a promise that can be delayed to execute at a specific time or after another operation is completed.77
busterc/promise-do-untilCalls a function repeatedly until a condition returns true and then resolves the promise1
busterc/promise-do-whilstRepeats an action until a condition is met, then resolves a promise.3
sindresorhus/p-lazyA promise class that defers execution until the promise is actually used or specific methods are called269
sindresorhus/p-someWait for a specified number of promises to be fulfilled36
bgrins/bindwithdelayA jQuery plugin for executing event handlers with delayed or throttled execution.152
busterc/promise-untilRepeats an action until a condition is met and then resolves a promise3
ai/nanodelayA tiny Promise wrapper around setTimeout193
sindresorhus/p-raceImproves Promise.race() by preventing infinite pending promises and adding support for aborting promises using AbortSignal.46
samccone/promise-semaphoreManages concurrent tasks in a serial fashion with configurable parallelism29
sindresorhus/p-allConcurrently execute multiple promise-returning functions with optional concurrency limits.319
sindresorhus/p-timeA utility to measure the time taken by a promise to resolve70
sindresorhus/p-memoizeMemoizes promise-returning and async functions to cache consecutive function calls by storing results of identical input.397