Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Timer

Hierarchy

Index

Constructors

constructor

  • new Timer(duration: number): Timer

Methods

catch

  • catch<TResult>(onrejected?: PromiseOnRejected<TResult>): Promise<ResolveType | TResult>

finally

pause

  • pause(): this

set

  • set(duration: number): this
  • Parameters

    • duration: number

    Returns this

start

  • start(): this

stop

  • stop(error?: Error): this
  • Parameters

    • Optional error: Error

    Returns this

then

Static create

  • create(duration: number): Timer

Generated using TypeDoc