Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IPoorManWorkerScope

Hierarchy

  • IPoorManWorkerScope

Index

Properties

onerror

onerror: function | null

onmessage

onmessage: function | null

Methods

addEventListener

  • addEventListener<K>(type: K, listener: function, options: boolean | AddEventListenerOptions): void
  • Type parameters

    • K: keyof IPoorManWorkerScopeEventMap

    Parameters

    • type: K
    • listener: function
    • Optional options: boolean | AddEventListenerOptions

    Returns void

close

  • close(): void

postMessage

  • postMessage(message: any, transfer: IPoorManTransferAble[]): void
  • Parameters

    • message: any
    • Optional transfer: IPoorManTransferAble[]

    Returns void

removeEventListener

  • removeEventListener<K>(type: K, listener: function, options: boolean | AddEventListenerOptions): void
  • Type parameters

    • K: keyof IPoorManWorkerScopeEventMap

    Parameters

    • type: K
    • listener: function
    • Optional options: boolean | AddEventListenerOptions

    Returns void