X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Finterfaces%2FTask.html;h=ebd7b5b50fb714164fe58a89f089e4713a9237bb;hb=67de15a041152a973334839ad2c73284b1b3cbb3;hp=db50344064bbb7aa09eab88f3847c2549c1a5c11;hpb=e7339cfd46bfe4600187ae2c6bd6c9e7f63e7052;p=poolifier.git diff --git a/docs/interfaces/Task.html b/docs/interfaces/Task.html index db503440..ebd7b5b5 100644 --- a/docs/interfaces/Task.html +++ b/docs/interfaces/Task.html @@ -1,4 +1,4 @@ -Task | poolifier
+Task | poolifier
+

Interface Task<Data>Internal

-

Worker task interface.

+

Message object that is passed as a task between main worker and worker.

-
+

Type Parameters

-
    +
    • -

      Data = unknown

+

Data = unknown

+

Type of data sent to the worker. This can only be serializable data.

+

Hierarchy

    -
  • Task
@@ -36,25 +40,25 @@

Properties

-

Properties

-
- -
data: Data
-

Worker task data.

+
+ +
data?: Data
+

Task input data that will be passed to the worker.

-
- -
id: string
-

Task UUID.

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

    UUID of the message.

    +
  • Defined in src/pools/worker.ts:47
  • +

    Theme

    On This Page

    +
  • data
  • +
  • id
  • +
  • PoolType
  • +
  • AbstractPool
  • +
  • AbstractWorker
  • +
  • CircularArray
  • +
  • ClusterWorker
  • +
  • DynamicClusterPool
  • +
  • DynamicThreadPool
  • +
  • FixedClusterPool
  • +
  • FixedThreadPool
  • +
  • PoolEmitter
  • +
  • Queue
  • +
  • ThreadWorker
  • +
  • WorkerChoiceStrategyContext
  • +
  • ClusterPoolOptions
  • +
  • IPool
  • +
  • IWorker
  • +
  • IWorkerChoiceStrategy
  • +
  • MessageValue
  • +
  • PoolOptions
  • +
  • PromiseResponseWrapper
  • +
  • RequiredStatistics
  • +
  • Task
  • +
  • TasksQueueOptions
  • +
  • TasksUsage
  • +
  • WorkerChoiceStrategyOptions
  • +
  • WorkerNode
  • +
  • WorkerOptions
  • +
  • Draft
  • +
  • ErrorHandler
  • +
  • ExitHandler
  • +
  • KillBehavior
  • +
  • MessageHandler
  • +
  • OnlineHandler
  • +
  • PoolEvent
  • +
  • ThreadWorkerWithMessageChannel
  • +
  • WorkerAsyncFunction
  • +
  • WorkerChoiceStrategy
  • +
  • WorkerFunction
  • +
  • WorkerSyncFunction
  • +
  • KillBehaviors
  • +
  • PoolEvents
  • +
  • WorkerChoiceStrategies
  • Generated using TypeDoc

    \ No newline at end of file