X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Finterfaces%2FMessageValue.html;h=7cb8119491d7dc0b5e5c9fc8496720575f762c7b;hb=20ebfb03d96dc805e59643cf1f90667545a3fef2;hp=ccf490a367b5aa9d38c0732fb409033967068255;hpb=842d8918a19fc2720d4436789a2e373bc623452e;p=poolifier.git diff --git a/docs/interfaces/MessageValue.html b/docs/interfaces/MessageValue.html index ccf490a3..7cb81194 100644 --- a/docs/interfaces/MessageValue.html +++ b/docs/interfaces/MessageValue.html @@ -1,4 +1,4 @@ -MessageValue | poolifier
+MessageValue | poolifier
+

Interface MessageValue<Data, ErrorData>Internal

-

Message object that is passed between worker and main worker.

-
-
+

Message object that is passed between main worker and worker.

+
+
+

Type Parameters

-
    +
    • -

      Data = unknown

    • +

      Data = unknown

      +

      Type of data sent to the worker or execution response. This can only be structured-cloneable data.

      +
      +
    • -

      MainWorker extends ClusterWorker | MessagePort | unknown = unknown

+

ErrorData = unknown

+

Type of data sent to the worker triggering an error. This can only be structured-cloneable data.

+
+

Hierarchy

    -
  • MessageValue
@@ -38,63 +47,108 @@

Properties

-
- -
data?: Data
-

Input data that will be passed to the worker.

-
-
- -
error?: string
-

Error.

-
+
+ +
kill?: 1 | "SOFT" | "HARD"

Kill code.

-
+
+ +
name?: string
+

Task name.

+
+
+
+ +
started?: boolean
+

Whether the worker has started or not.

+
+
+
+ +
statistics?: WorkerStatistics
+

Whether the worker computes the given statistics or not.

+
+
+
+ +
taskError?: TaskError<ErrorData>
+

Task error.

+
+
+
+ +
taskPerformance?: TaskPerformance
+

Task performance.

+
+
-
- -
parent?: MainWorker
-

Reference to main worker.

-

Only for internal use.

-
+
+ +
timestamp?: number
+

Timestamp.

+
+
-
- -
runTime?: number
-

Runtime.

-
+
+ +
workerId?: number
+

Worker id.

+
+
+
  • Defined in src/utility-types.ts:67
  • -

    On This Page

    +

    On This Page

    +
  • data
  • +
  • id
  • +
  • kill
  • +
  • name
  • +
  • started
  • +
  • statistics
  • +
  • taskError
  • +
  • taskPerformance
  • +
  • timestamp
  • +
  • workerId
  • +
  • AbstractPool
  • +
  • AbstractWorker
  • +
  • CircularArray
  • +
  • ClusterWorker
  • +
  • DynamicClusterPool
  • +
  • DynamicThreadPool
  • +
  • FixedClusterPool
  • +
  • FixedThreadPool
  • +
  • PoolEmitter
  • +
  • Queue
  • +
  • ThreadWorker
  • +
  • WorkerChoiceStrategyContext
  • +
  • ClusterPoolOptions
  • +
  • EventLoopUtilizationMeasurementStatistics
  • +
  • IPool
  • +
  • IWorker
  • +
  • IWorkerChoiceStrategy
  • +
  • MeasurementOptions
  • +
  • MeasurementStatistics
  • +
  • MeasurementStatisticsRequirements
  • +
  • MessageValue
  • +
  • PoolInfo
  • +
  • PoolOptions
  • +
  • PromiseResponseWrapper
  • +
  • StrategyPolicy
  • +
  • Task
  • +
  • TaskError
  • +
  • TaskPerformance
  • +
  • TaskStatistics
  • +
  • TaskStatisticsRequirements
  • +
  • TasksQueueOptions
  • +
  • ThreadPoolOptions
  • +
  • WorkerChoiceStrategyOptions
  • +
  • WorkerInfo
  • +
  • WorkerNode
  • +
  • WorkerOptions
  • +
  • WorkerStatistics
  • +
  • WorkerUsage
  • +
  • ErrorHandler
  • +
  • ExitHandler
  • +
  • KillBehavior
  • +
  • Measurement
  • +
  • MessageHandler
  • +
  • OnlineHandler
  • +
  • PoolEvent
  • +
  • PoolType
  • +
  • TaskFunctions
  • +
  • WorkerAsyncFunction
  • +
  • WorkerChoiceStrategy
  • +
  • WorkerFunction
  • +
  • WorkerSyncFunction
  • +
  • WorkerType
  • +
  • KillBehaviors
  • +
  • Measurements
  • +
  • PoolEvents
  • +
  • PoolTypes
  • +
  • WorkerChoiceStrategies
  • +
  • WorkerTypes
  • +
  • availableParallelism
  • Generated using TypeDoc

    \ No newline at end of file