Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Thread

Hierarchy

  • Thread

Implements

Index

Constructors

constructor

Properties

Readonly id

id: string

Methods

destroy

  • destroy(): void
  • Returns void

getState

  • getState(): String
  • Returns String

isDestroyed

  • isDestroyed(): boolean
  • Returns boolean

isRunning

  • isRunning(): boolean
  • Returns boolean

off

  • off(e: "message" | "error"): this
  • Parameters

    • e: "message" | "error"

    Returns this

on

postThread

  • postThread(data: any, transfer?: Array<ArrayBuffer | MessagePort | ImageBitmap>): this
  • Parameters

    • data: any
    • Optional transfer: Array<ArrayBuffer | MessagePort | ImageBitmap>

    Returns this

run

  • run(): void
  • Returns void

start

  • start(): this
  • Returns this

terminate

  • terminate(): this
  • Returns this

Static initContext

  • Init context is in a independent running thread file.

    Returns ThreadRunner