Appearance
@mastondzn/dank-twitch-irc / EditableTimeout
Class: EditableTimeout
A wrapper around <code>
setTimeout()</code>
and <code>
clearTimeout()</code>
that allows the timer to be edited to complete earlier or later, relative to its original start time.
Constructors
new EditableTimeout(callback, runTime)
new EditableTimeout(
callback
,runTime
):EditableTimeout
Parameters
• callback
• runTime: number
Returns
Source
src/utils/editable-timeout.ts:15
Properties
callback
readonly
callback: () =>void
Returns
void
Source
src/utils/editable-timeout.ts:7
completed
completed:
boolean
=false
Source
src/utils/editable-timeout.ts:13
runTime
runTime:
number
Source
src/utils/editable-timeout.ts:10
runningTimeout
runningTimeout:
undefined
|Timeout
Source
src/utils/editable-timeout.ts:12
startTime
readonly
startTime:number
Source
src/utils/editable-timeout.ts:9
Methods
invokeCallback()
private
invokeCallback():void
Returns
void
Source
src/utils/editable-timeout.ts:68
stop()
stop():
boolean
Returns
boolean
Source
src/utils/editable-timeout.ts:28
update()
update(
newRunTime
):void
Parameters
• newRunTime: number
Returns
void
Source
src/utils/editable-timeout.ts:38
updateTimer()
private
updateTimer():void
Returns
void