X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Finterfaces%2FMessageValue.html;h=54e9c651051cd5757367659d42ecbee076778d3b;hb=2a6631992868d900762f62e4c228dce4e4ee549a;hp=f23a59ea3e12a14ccd5a85f9ccb600b4e629f25b;hpb=ae782cfa994b2468b49e4279e03c5140e9e309e3;p=poolifier.git diff --git a/docs/interfaces/MessageValue.html b/docs/interfaces/MessageValue.html index f23a59ea..54e9c651 100644 --- a/docs/interfaces/MessageValue.html +++ b/docs/interfaces/MessageValue.html @@ -14,21 +14,24 @@ -

Interface MessageValue<Data, MainWorker>Internal

+

Interface MessageValue<Data, ErrorData>Internal

Message object that is passed between main worker and worker.

-
+ +

Type Parameters

+

ErrorData = unknown

+

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

+
+

Hierarchy

+
  • Defined in src/utility-types.ts:62
  • @@ -44,73 +47,108 @@

    Properties

    - +
    data?: Data

    Task input data that will be passed to the worker.

    -
    -
    - -
    error?: string
    -

    Error.

    -
    +
  • Defined in src/pools/worker.ts:47
  • - +
    id?: string

    Message UUID.

    -
    +
  • Defined in src/pools/worker.ts:55
  • - +
    kill?: 1 | "SOFT" | "HARD"

    Kill code.

    -
    +
  • Defined in src/utility-types.ts:71
  • - +
    name?: string

    Task name.

    -
    -
    - -
    parent?: MainWorker
    -

    Reference to main worker.

    -
    +
    + +
    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.

    +
    +
    +
    + +
    timestamp?: number
    +

    Timestamp.

    +
    +
    -
    - -
    runTime?: number
    -

    Runtime.

    -
    +
    + +
    workerId?: number
    +

    Worker id.

    +
    +
    +
  • Defined in src/utility-types.ts:67
  • +
  • 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