amccollum/timeout

Simple replacement for setTimeout, setInterval, and polling loops

CoffeeScriptJavaScript
This is stars and forks stats for /amccollum/timeout repository. As of 04 May, 2024 this repository has 4 stars and 0 forks.

timeout Simple timeout handling: timeout.timeout(100, function () { alert('Fired!'); }); Named timeouts are also supported: timeout.timeout('myTimeout', 100, function () { alert('Fired!'); }); This allows you to trigger the timeout early: timeout.timeout('myTimeout', true); Or remove/replace it before it fires: timeout.timeout('myTimeout', newDelay, newFn); timeout.timeout('myTimeout', null); To create a loop, just return true from the timeout function: var counter = 0; timeout.timeout('myTimeout',...
Read on GithubGithub Stats Page
repotechsstarsweeklyforksweekly
pangratz/emberjs-hubotCoffeeScriptShell0010
jarred/content-baseCoffeeScript0000
Abhinav-26/DevOps-ProjectsCSSHTMLJavaScript430+44490
unchain-dev/nft-collection-starter-projectCSSJavaScriptHTML101800
ChaoticOnyx/OnyxBayDMHTMLJavaScript8202050
hyperledger/fabric-samplesGoTypeScriptJavaScript2.6k03.2k0
dfinity/interface-specJavaScriptCSS310200
code-423n4/2022-06-puttySolidityJavaScriptRuby7060
italia/design-drupal-themeTwigPHPSCSS7020
stoneatom/stonedbC++CJavaScript825+21430