X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Finterfaces%2FMessageValue.html;h=36a3f7582c4f2628505891109ec2575f9ab28a96;hb=0e16e60a89029abe61cda7ba293c036298cced05;hp=11fc7b52db0d6a66017db61312360dd87a9f1d1d;hpb=f8350486e75b15ed17249cda3d0a55ee807a6a9f;p=poolifier.git diff --git a/docs/interfaces/MessageValue.html b/docs/interfaces/MessageValue.html index 11fc7b52..36a3f758 100644 --- a/docs/interfaces/MessageValue.html +++ b/docs/interfaces/MessageValue.html @@ -1,4 +1,4 @@ -MessageValue | poolifier
+MessageValue | poolifier - v2.6.26
  • Preparing search index...
  • -
  • The search index is not available
poolifier
+
  • The search index is not available
  • poolifier - v2.6.26
    @@ -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:99
  • @@ -44,98 +47,146 @@

    Properties

    +
    + +
    checkActive?: boolean
    +

    Whether the worker starts or stops its activity check.

    +
    +
    - +
    data?: Data

    Task input data that will be passed to the worker.

    -
    -
    - -
    error?: string
    -

    Task error.

    -
    -
    - -
    errorData?: unknown
    -

    Task data triggering task error.

    -
    -
    - -
    id?: string
    -

    Message UUID.

    -
    +
  • Defined in src/utility-types.ts:77
  • - -
    kill?: 1 | "SOFT" | "HARD"
    + +
    kill?: true | "success" | "SOFT" | "HARD" | "failure"

    Kill code.

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

    Task name.

    -
    -
    - -
    parent?: MainWorker
    -

    Reference to main worker.

    -
    -
    - -
    runTime?: number
    -

    Runtime.

    -
    -
    - -
    submissionTimestamp?: number
    -

    Submission timestamp.

    -
    -
    - -
    waitTime?: number
    -

    Wait time.

    -
    +
  • Defined in src/utility-types.ts:73
  • +
    + +
    port?: MessagePort
    +

    Message port.

    +
    +
    +
    + +
    ready?: boolean
    +

    Whether the worker is ready or not.

    +
    +
    +
    + +
    statistics?: WorkerStatistics
    +

    Whether the worker computes the given statistics or not.

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

    Task error.

    +
    +
    +
    + +
    taskFunctions?: string[]
    +

    Task function names.

    +
    +
    +
    + +
    taskId?: string
    +

    Task UUID.

    +
    +
    +
    + +
    taskPerformance?: TaskPerformance
    +

    Task performance.

    +
    +
    +
    + +
    timestamp?: number
    +

    Timestamp.

    +
    +
    +
    + +
    transferList?: TransferListItem[]
    +

    Array of transferable objects.

    +
    +
    +
    + +
    workerId: number
    +

    Worker id.

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

    \ No newline at end of file