X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Finterfaces%2FMessageValue.html;h=36dfd2dbf25a6eb12bfcbc324e5d2fbf236f0568;hb=71056a0ac555e096c1428d6341ef45c7980a6332;hp=eb3a605a6e49b0f6be86c789bcf99a4ac84d137b;hpb=e39450c0889208d6dcde666fc05b95fe7a98ee29;p=poolifier.git diff --git a/docs/interfaces/MessageValue.html b/docs/interfaces/MessageValue.html index eb3a605a..36dfd2db 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 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

+
  • Defined in src/utility-types.ts:30
  • @@ -44,65 +47,126 @@

    Properties

    -
    - -
    data?: Data
    -

    Input data that will be passed to the worker.

    -
    +
    + +
    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
  • +
  • TaskPerformance
  • +
  • TaskStatistics
  • +
  • TasksQueueOptions
  • +
  • TasksUsage
  • +
  • ThreadPoolOptions
  • +
  • WorkerChoiceStrategyOptions
  • +
  • WorkerNode
  • +
  • WorkerOptions
  • +
  • WorkerStatistics
  • +
  • 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