You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This enables rekindling a dead timeout as if it's new
timeout.set('huga',()=>console.log('huga done!'),5000);// ... later on after the whole thing is dead, maybe after 12000mstimeout.renew('huga')// if this was instantiated to t...t.renew()
That will just reinstantiate the timeout and replace it in mem.
optionally we could set new delay
timeout.renew('huga',400)// if this was instantiated to t...t.renew(400)
The text was updated successfully, but these errors were encountered:
This makes sense to me. We do have a restart() that will restart for a timeout that has not yet executed, but there is no way to reset() a timeout that has already executed.
I'd probably just call it reset() rather than renew().
This enables rekindling a dead timeout as if it's new
That will just reinstantiate the timeout and replace it in mem.
optionally we could set new delay
The text was updated successfully, but these errors were encountered: