KofiLoop
Options
All
  • Public
  • Public/Protected
  • All
Menu

The loop handler.

internal

Hierarchy

  • EventEmitter
    • Loop

Index

Constructors

constructor

  • new Loop(handler: Promise<any> | function, interval: number, ...args: any[]): Loop
  • Constructor of the Loop class.

    internal

    Parameters

    • handler: Promise<any> | function
    • interval: number
    • Rest ...args: any[]

    Returns Loop

Properties

args

args: any[]

finishEventCalled

finishEventCalled: boolean = false

interval

interval: number

loopReturn

loopReturn: LoopReturn

loopSelf

loopSelf: LoopSelf

status

status: LoopStatus

Methods

executeStep

  • executeStep(): undefined | this
  • Executes a step.

    Returns undefined | this

finishStep

  • finishStep(): void
  • Finishs the current step and starts a new step.

    Returns void

getReturnValue

isStopped

  • isStopped(): boolean
  • Returns if loop is stopped.

    Returns boolean

listenEvents

  • listenEvents(): void
  • Registers events.

    Returns void

measureTime

  • measureTime(start?: [number, number]): number | Object
  • Parameters

    • Optional start: [number, number]

    Returns number | Object

run

  • run(): void
  • Runs the loop.

    throws

    {\Error} if loop is not stopped.

    Returns void

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc