X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=docs%2Fclasses%2FThreadWorker.html;h=699f8c84582f1766dfb25d8cdb33b5e5954224ae;hb=8fd4187e3fe8b825a9cde915d9ab87aaac503ddb;hp=7e09a2bf9275fa3684fbb77600f148609d77cab1;hpb=cd3135e48c6ba3fb7bdfe3da9ac47ad6805e8797;p=poolifier.git diff --git a/docs/classes/ThreadWorker.html b/docs/classes/ThreadWorker.html index 7e09a2bf..699f8c84 100644 --- a/docs/classes/ThreadWorker.html +++ b/docs/classes/ThreadWorker.html @@ -7,7 +7,7 @@ but the minimum number of workers will be guaranteed.

Since

0.0.1

Type Parameters

Hierarchy

Constructors

Hierarchy

Constructors

Properties

activeInterval? isMain lastTaskTimestamp @@ -38,56 +38,56 @@ but the minimum number of workers will be guaranteed.

setDefaultTaskFunction triggerAsyncId bind -

Constructors

  • Constructs a new poolifier thread worker.

    +

Constructors

Properties

activeInterval?: Timeout

Handler id of the activeInterval worker activity check.

-
isMain: boolean

Whether this is the main worker or not.

-
lastTaskTimestamp: number

Timestamp of the last task processed by this worker.

-
opts: WorkerOptions = DEFAULT_WORKER_OPTIONS

Options for the worker.

-
port: MessagePort

Message port used to communicate with the main worker.

-
statistics: WorkerStatistics

Performance statistics computation requirements.

-
taskFunctions: Map<string, TaskFunction<Data, Response>>

Task function(s) processed by the worker when the pool's execution function is invoked.

-

Accessors

Methods

Returns ThreadWorker<Data, Response>

Properties

activeInterval?: Timeout

Handler id of the activeInterval worker activity check.

+
isMain: boolean

Whether this is the main worker or not.

+
lastTaskTimestamp: number

Timestamp of the last task processed by this worker.

+
opts: WorkerOptions = DEFAULT_WORKER_OPTIONS

Options for the worker.

+
port: MessagePort

Message port used to communicate with the main worker.

+
statistics: WorkerStatistics

Performance statistics computation requirements.

+
taskFunctions: Map<string, TaskFunction<Data, Response>>

Task function(s) processed by the worker when the pool's execution function is invoked.

+

Accessors

Methods

Returns void

Returns void

Returns void

Returns void

Returns Result

Since

v9.6.0

-

Returns void

Returns void