SS
02/22/2022, 8:56 AMLea CC
02/22/2022, 10:22 AMShawn Talbert
02/22/2022, 3:52 PMGerald Gillespie
02/22/2022, 7:43 PMGerald Gillespie
02/22/2022, 7:52 PMsetTimeout
works you can call it with something like this (you can also call it to just count promise ticks if you use count:0
and no increaser
function)
(callback, duration) => {
const now = () => ( new Date().getTime() );
const start = now();
return promiseUntilThreshold({ count : start, duration }, callback, now);
}
borncorp
02/24/2022, 2:42 AMGerald Gillespie
02/24/2022, 1:39 PMsetInterval
and setTimeout
. I [published it](https://bitbucket.org/suitecoders/workspace/snippets/6XzGko/settimeout-and-setinterval-for-backend)
P.S. if you could take down your post (or update it with a warning) that would help me sleep at night. (no offense btw)
P.P.S. many of your other posts have helped me sleep at night because they are up so leave those ones up (and thank you)borncorp
02/24/2022, 8:36 PMShawn Talbert
02/24/2022, 9:09 PMShawn Talbert
02/24/2022, 10:19 PMborncorp
02/24/2022, 10:29 PMdarrenhillconsulting
02/25/2022, 1:14 AMShawn Talbert
02/25/2022, 3:25 AM