Options
All
  • Public
  • Public/Protected
  • All
Menu

Class EditableTimeout

A wrapper around setTimeout() and clearTimeout() that allows the timer to be edited to complete earlier or later, relative to its original start time.

Hierarchy

  • EditableTimeout

Index

Constructors

constructor

  • new EditableTimeout(callback: () => void, runTime: number): EditableTimeout

Properties

Readonly callback

callback: () => void

Type declaration

    • (): void
    • Returns void

completed

completed: boolean = false

runTime

runTime: number

runningTimeout

runningTimeout: Timeout | undefined

Readonly startTime

startTime: number

Methods

stop

  • stop(): boolean

update

  • update(newRunTime: number): void

Generated using TypeDoc