Options
All
  • Public
  • Public/Protected
  • All
Menu

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

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

Properties

callback: () => void

Type declaration

    • (): void
    • Returns void

completed: boolean = false
runTime: number
runningTimeout: undefined | Timeout
startTime: number

Methods

  • stop(): boolean
  • update(newRunTime: number): void

Generated using TypeDoc