X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Finterfaces%2FMessageValue.html;h=3f612975f354af3f49bd21e762b7227701660228;hb=3ef87592f37b293b9593bfeefc77c78a8ddbabb3;hp=96fde0555946779c728e87649fb761eb4c0a23e7;hpb=e4b9c7f546318de7603566b141fd0e2d0118c794;p=poolifier.git diff --git a/docs/interfaces/MessageValue.html b/docs/interfaces/MessageValue.html index 96fde055..3f612975 100644 --- a/docs/interfaces/MessageValue.html +++ b/docs/interfaces/MessageValue.html @@ -1,4 +1,4 @@ -MessageValue | poolifier
+MessageValue | poolifier
+

Interface MessageValue<Data, MainWorker>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. This can only be serializable data.

      +
      +
    • -

      MainWorker extends ClusterWorker | MessagePort | unknown = unknown

+

MainWorker extends ClusterWorker | MessagePort = ClusterWorker | MessagePort

+

Type of main worker.

+
+

Hierarchy

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

Properties

-
- -
data?: Data
-

Input data that will be passed to the worker.

-
+
+ +
id?: string
+

Message UUID.

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

Kill code.

-
+
+ +
name?: string
+

Task name.

+
+
-
- -
parent?: MainWorker
+
  • Defined in src/pools/worker.ts:44
  • +
    + +
    parent?: MainWorker

    Reference to main worker.

    -

    Only for internal use.

    -
    -
    - -
    runTime?: number
    +
  • Defined in src/utility-types.ts:61
  • +
    + +
    runTime?: number

    Runtime.

    -
    +
    + +
    statistics?: WorkerStatistics
    +

    Whether to compute the given statistics or not.

    +
    +
    +
    + +
    timestamp?: number
    +

    Timestamp.

    +
    +
    +
    + +
    waitTime?: number
    +

    Wait time.

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

    On This Page

    +

    On This Page

    +
  • data
  • +
  • elu
  • +
  • error
  • +
  • errorData
  • +
  • id
  • +
  • kill
  • +
  • name
  • +
  • parent
  • +
  • runTime
  • +
  • statistics
  • +
  • timestamp
  • +
  • waitTime
  • +
  • AbstractPool
  • +
  • AbstractWorker
  • +
  • CircularArray
  • +
  • ClusterWorker
  • +
  • DynamicClusterPool
  • +
  • DynamicThreadPool
  • +
  • FixedClusterPool
  • +
  • FixedThreadPool
  • +
  • PoolEmitter
  • +
  • Queue
  • +
  • ThreadWorker
  • +
  • WorkerChoiceStrategyContext
  • +
  • ClusterPoolOptions
  • +
  • IPool
  • +
  • IWorker
  • +
  • IWorkerChoiceStrategy
  • +
  • MessageValue
  • +
  • PoolInfo
  • +
  • PoolOptions
  • +
  • PromiseResponseWrapper
  • +
  • Task
  • +
  • TaskStatistics
  • +
  • TasksQueueOptions
  • +
  • TasksUsage
  • +
  • WorkerChoiceStrategyOptions
  • +
  • WorkerNode
  • +
  • WorkerOptions
  • +
  • Draft
  • +
  • ErrorHandler
  • +
  • ExitHandler
  • +
  • KillBehavior
  • +
  • MessageHandler
  • +
  • OnlineHandler
  • +
  • PoolEvent
  • +
  • PoolType
  • +
  • TaskFunctions
  • +
  • ThreadWorkerWithMessageChannel
  • +
  • WorkerAsyncFunction
  • +
  • WorkerChoiceStrategy
  • +
  • WorkerFunction
  • +
  • WorkerSyncFunction
  • +
  • WorkerType
  • +
  • KillBehaviors
  • +
  • PoolEvents
  • +
  • PoolTypes
  • +
  • WorkerChoiceStrategies
  • +
  • WorkerTypes
  • Generated using TypeDoc

    \ No newline at end of file