X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Ftypes%2FWorkerAsyncFunction.html;h=3c49c4d270acb3b355922ebbc8638b9c89d9d04d;hb=6d59ea2c71b8a88d41498c6fb54dfad95fd3a3ac;hp=3c9c3236a92736aff8fc2e18905103045c9eff1c;hpb=2f4ae5a6c14efa15bafa4ab0e68f166ec80d719b;p=poolifier.git diff --git a/docs/types/WorkerAsyncFunction.html b/docs/types/WorkerAsyncFunction.html index 3c9c3236..3c49c4d2 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

      +

      Data = unknown

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

      -
    • +
+
  • -

    Response = unknown

    +

    Response = unknown

    Type of execution response. This can only be serializable 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>

    +

    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
  • +
  • WorkerNode
  • +
  • WorkerOptions
  • +
  • WorkerStatistics
  • +
  • WorkerUsage
  • +
  • Draft
  • +
  • ErrorHandler
  • +
  • ExitHandler
  • +
  • KillBehavior
  • +
  • Measurement
  • +
  • MessageHandler
  • +
  • OnlineHandler
  • +
  • PoolEvent
  • +
  • PoolType
  • +
  • TaskFunctions
  • +
  • ThreadWorkerWithMessageChannel
  • +
  • WorkerAsyncFunction
  • +
  • WorkerChoiceStrategy
  • +
  • WorkerFunction
  • +
  • WorkerSyncFunction
  • +
  • WorkerType
  • +
  • KillBehaviors
  • +
  • Measurements
  • +
  • PoolEvents
  • +
  • PoolTypes
  • +
  • WorkerChoiceStrategies
  • +
  • WorkerTypes
  • Generated using TypeDoc

    \ No newline at end of file