Options
All
  • Public
  • Public/Protected
  • All
Menu

Class WorkerShim

Hierarchy

  • WorkerShim

Index

Constructors

constructor

  • Parameters

    • scriptFile: string

    Returns WorkerShim

Methods

addEventListener

  • addEventListener(name: string, fn: (...args: unknown[]) => void): void
  • Parameters

    • name: string
    • fn: (...args: unknown[]) => void
        • (...args: unknown[]): void
        • Parameters

          • Rest ...args: unknown[]

          Returns void

    Returns void

dispatchEvent

  • dispatchEvent(): boolean
  • Returns boolean

onerror

  • onerror(): void
  • Returns void

onmessage

  • onmessage(): void
  • Returns void

onmessageerror

  • onmessageerror(): void
  • Returns void

postMessage

  • postMessage(message: { args?: unknown[]; funcName: string; transfer: Transferable[] }): void
  • Parameters

    • message: { args?: unknown[]; funcName: string; transfer: Transferable[] }
      • Optional args?: unknown[]
      • funcName: string
      • transfer: Transferable[]

    Returns void

removeEventListener

  • removeEventListener(name: string, fn: (...args: unknown[]) => void): void
  • Parameters

    • name: string
    • fn: (...args: unknown[]) => void
        • (...args: unknown[]): void
        • Parameters

          • Rest ...args: unknown[]

          Returns void

    Returns void

terminate

  • terminate(): void
  • Returns void

Generated using TypeDoc