Options
All
  • Public
  • Public/Protected
  • All
Menu

Class WebWorker

Hierarchy

  • WebWorker

Index

Constructors

constructor

  • new WebWorker(workerTask: Function): WebWorker

Methods

run

  • run(paramsToSend: Object, transfer: Array<any>): Promise<Object>
  • Parameters

    • paramsToSend: Object
    • Optional transfer: Array<any>

    Returns Promise<Object>

runOneTimeThrowAwayWorker

  • runOneTimeThrowAwayWorker(paramsToSend: Object, transfer: Array<any>): Promise<Object>
  • Parameters

    • paramsToSend: Object
    • Optional transfer: Array<any>

    Returns Promise<Object>

terminate

  • terminate(): void