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: 8 days ago
Linked from 1 awesome list

javascriptpromise

Backlinks from these awesome lists:

Related projects:

Repository Description Stars
sindresorhus/delay Allows delaying promises by a specified amount of time or a random range. 609
sindresorhus/p-debounce Debounces promise-returning & async functions to delay their execution until after a specified wait period has elapsed since the last call. 211
sindresorhus/p-defer Provides a promise that can be delayed to execute at a specific time or after another operation is completed. 73
busterc/promise-do-until Calls a function repeatedly until a condition returns true and then resolves the promise 1
busterc/promise-do-whilst Repeats an action until a condition is met, then resolves a promise. 3
sindresorhus/p-lazy A promise class that defers execution until the promise is actually used or specific methods are called 266
sindresorhus/p-some Wait for a specified number of promises to be fulfilled 36
bgrins/bindwithdelay A jQuery plugin for executing event handlers with delayed or throttled execution. 152
busterc/promise-until Repeats an action until a condition is met and then resolves a promise 3
ai/nanodelay A tiny Promise wrapper around setTimeout 193
sindresorhus/p-race Improves Promise.race() by preventing infinite pending promises and adding support for aborting promises using AbortSignal. 46
samccone/promise-semaphore Manages concurrent tasks in a serial fashion with configurable parallelism 29
sindresorhus/p-all Concurrently execute multiple promise-returning functions with optional concurrency limits. 315
sindresorhus/p-time A utility to measure the time taken by a promise to resolve 70
sindresorhus/p-memoize Memoizes promise-returning and async functions to cache consecutive function calls by storing results of identical input. 396