I recommend reading the Polly wiki for more information for details and mechanics around the patterns we provide. There are two events, onSuccess/onFailure, that are called when a call succeeds or fails. Note that onFailure only is called if a handled error is thrown.
nodejs typescript circuit-breaker cancellation bulkhead cancellationtoken fault-handling bulkhead-isolation backoffs retry backoff jitter resilience timeout fallback fluent pollyA jQuery plugin to automatically hide page elements after an 'expiry' date and/or time.
jquery-plugin expire hide notice timeoutSimple, yet elegant jQuery.Deferred wrapper for window.setTimeout() and window.clearTimeout().
jquery-plugin timeout deferred promise delayAllows you to use the jQuery.Deferred mechanism in combination with setTimeout and setInterval.
jquery-plugin time pause chrono settimeout setinterval timeout interval delay postpone wait defer deferredRunning multiple function calls in parallel without a timeout.Running multiple function calls in parallel with a large enough worker pool.
parallel parallelism parallelization parallelize function functions timeout worker pool worker-poolSimple `setImmediate` shim
setimmediate immediate settimeout timeout shim polyfill ponyfillReturns a decorated input that times out after ms time.If you pass in a cancelable promise, specifically a promise with a .cancel() method, that method will be called when the pTimeout promise times out.
promise timeout error invalidate async await promises time out cancel bluebirdThrottle a function and cache the result for x milliseconds.The arguments parsed to the callback will be cached according to the same rules as described previously, so subsequent executions of runner will just call the supplied callback function with the previous arguments until the cache expires.
cache cached throttle limit callback function timeout expireIf you're writing a library which uses timers (like node-browserchannel), its annoying to wait 30 seconds for your timeout event to fire. Timer stub provides a replacement version of setInterval, clearInterval, setTimeout, clearTimeout and Date.now (through a wrapped Date function).
test stub timeout timeA tiny library to wait for the results of multiple callbacks. For node and the browser.Start with var listen = require('listen'), then use the listen function to create listeners. Use the listeners to create callbacks.
async callbacks thenable minimal node browser callback timeout flowAccepts a function as input and returns a new function. If the returned function is called before the timeout period (the default timeout is one second), it clears the timeout and invokes the input function. If the returned function isn't called before the timeout period, the input function is called regardless.Works in the browser, with browserify! Module development sponsored by Study Notes.
function timeout ensure guarantee called timeout-function create-function create-function-with-timeout function-with-timeout google-analyticsWhile the delay module delays the promise a specified amount of time and then resolves it, this module ensures the promise resolves after the specified amount of time.Useful when you have a promise that may settle immediately or may take some time, and you want to ensure it doesn't settle too fast. For example, if you want to show a loading indicator for at least 1 second (but longer if needed) to prevent a confusing flash in the UI.
promise delay minimum min resolve stall defer wait timeout settimeout event loop next tick async await promises bluebirdA value larger than the one returned from this module, 2147483647 (~25 days), is too big to fit into a signed 32-bit integer, which is how JS engines store it, and will cause overflow, resulting in the timeout being scheduled immediately.
max maximum timeout settimeout delay overflow number constantAbort groups of callbacks.This is a handy module for cancelling nested asynchronous logic when some external event comes along like a timeout that should abort an entire transaction.
discard transaction async flow control domains timeoutseamlessly queue up asynchronous function calls. supports concurrency and timeouts.Pass any number of args... into the queue with an optional end function.
queue simple tiny timeout concurrencyConstructs new timeout instance. It does not start timer but creates variable for timer manipulation.
timeout promise promisify settimeout nodejs promise-api promises cleartimeout
We have large collection of open source products. Follow the tags from
Tag Cloud >>
Open source products are scattered around the web. Please provide information
about the open source projects you own / you use.
Add Projects.