X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Finterfaces%2FIWorker.html;h=582a9076586010f5923e4c1c651b41a1b676d64e;hb=30d7f6e094a9b837fd85c74ef23188ab28e86644;hp=e36f158f3f324e05893b9c6c42128a9927e2e9ee;hpb=7dc3841785ff59f315e3c6f8d76e70a05efd8db7;p=poolifier.git diff --git a/docs/interfaces/IWorker.html b/docs/interfaces/IWorker.html index e36f158f..582a9076 100644 --- a/docs/interfaces/IWorker.html +++ b/docs/interfaces/IWorker.html @@ -1,5 +1,5 @@ -IWorker | poolifier - v3.1.0

Interface IWorker

Worker interface.

-
interface IWorker {
    disconnect?: (() => void);
    id?: number;
    kill?: ((signal?) => void);
    on: ((event, handler) => void);
    once: ((event, handler) => void);
    terminate?: (() => Promise<number>);
    threadId?: number;
}

Properties

disconnect? +IWorker | poolifier - v3.1.8

Interface IWorker

Worker interface.

+
interface IWorker {
    disconnect?: (() => void);
    id?: number;
    kill?: ((signal?) => void);
    on: ((event, handler) => void);
    once: ((event, handler) => void);
    terminate?: (() => Promise<number>);
    threadId?: number;
}

Properties

Properties

disconnect?: (() => void)

Type declaration

    • (): void
    • Cluster worker disconnect.

      -

      Returns void

id?: number

Cluster worker id.

-
kill?: ((signal?) => void)

Type declaration

    • (signal?): void
    • Cluster worker kill.

      -

      Parameters

      • Optional signal: string

      Returns void

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

Type declaration

    • (event, handler): void
    • Registers an event handler.

      +

      Returns void

id?: number

Cluster worker id.

+
kill?: ((signal?) => void)

Type declaration

    • (signal?): void
    • Cluster worker kill.

      +

      Parameters

      • Optional signal: string

      Returns void

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

Type declaration

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

Type declaration

    • (event, handler): void
    • Registers once an event handler.

      +

Returns void

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

Type declaration

terminate?: (() => Promise<number>)

Type declaration

    • (): Promise<number>
    • Stop all JavaScript execution in the worker thread as soon as possible. +

Returns void

terminate?: (() => Promise<number>)

Type declaration

    • (): Promise<number>
    • Stop all JavaScript execution in the worker thread as soon as possible. Returns a Promise for the exit code that is fulfilled when the 'exit' event is emitted.

      -

      Returns Promise<number>

threadId?: number

Worker thread worker id.

-

Generated using TypeDoc

\ No newline at end of file +

Returns Promise<number>

threadId?: number

Worker thread worker id.

+

Generated using TypeDoc

\ No newline at end of file