Interface IWorker

Worker interface.

Hierarchy

  • IWorker

Properties

Properties

id?: number

Worker id.

on: ((event, handler) => void) & ((event, handler) => void) & ((event, handler) => void) & ((event, handler) => void)

Registers an event listener.

Type declaration

Type declaration

Type declaration

Type declaration

    • (event, handler): void
    • Parameters

      Returns void

Param

The event.

Param

The event handler.

once: ((event, handler) => void)

Type declaration

    • (event, handler): void
    • Registers a listener to the exit event that will only be performed once.

      Parameters

      Returns void

threadId?: number

Generated using TypeDoc