X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Ftypes%2FWorkerAsyncFunction.html;h=d85aedf3b3b72aa1b98f782a163144b05dcca3ca;hb=2a6631992868d900762f62e4c228dce4e4ee549a;hp=3c9c3236a92736aff8fc2e18905103045c9eff1c;hpb=2f4ae5a6c14efa15bafa4ab0e68f166ec80d719b;p=poolifier.git diff --git a/docs/types/WorkerAsyncFunction.html b/docs/types/WorkerAsyncFunction.html index 3c9c3236..d85aedf3 100644 --- a/docs/types/WorkerAsyncFunction.html +++ b/docs/types/WorkerAsyncFunction.html @@ -1,4 +1,4 @@ -WorkerAsyncFunction | poolifier
+WorkerAsyncFunction | poolifier
-
WorkerAsyncFunction<Data, Response>: ((data?: Data) => Promise<Response>)
-
+
WorkerAsyncFunction<Data, Response>: ((data?) => Promise<Response>)
+

Type Parameters

-
    +
    • -

      Data = unknown

      -

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

      -
    • +

      Data = unknown

      +

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

      +
      +
    • -

      Response = unknown

      -

      Type of execution response. This can only be serializable data.

      -
+

Response = unknown

+

Type of execution response. This can only be structured-cloneable data.

+
+

Type declaration

  • -
      -
    • (data?: Data): Promise<Response>
    • +
        +
      • (data?): Promise<Response>
      • Worker asynchronous function that can be executed. This function must return a promise.

        @@ -41,15 +43,16 @@ This function must return a promise.

        Parameters

        • -
          Optional data: Data
        -

        Returns Promise<Response>

+

Returns Promise<Response>

+
+
  • Defined in src/worker/worker-functions.ts:18
  • +

    Theme

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