X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fapi.md;h=5e4eeb227ff12b5d2c894f952ca6435d66cc0418;hb=a6a1259927e139b9b631099da2c7215ce0e33119;hp=1a881ba59d1f6eea52f8630f3f872d9269c774bd;hpb=2889bd70182e9e42c75d686ece3c288307e01d4f;p=poolifier.git diff --git a/docs/api.md b/docs/api.md index 1a881ba5..5e4eeb22 100644 --- a/docs/api.md +++ b/docs/api.md @@ -13,7 +13,7 @@ - [`pool.removeTaskFunction(name)`](#poolremovetaskfunctionname) - [`pool.listTaskFunctionNames()`](#poollisttaskfunctionnames) - [`pool.setDefaultTaskFunction(name)`](#poolsetdefaulttaskfunctionname) - - [`Pool options`](#pool-options) + - [Pool options](#pool-options) - [Worker](#worker) - [`class YourWorker extends ThreadWorker/ClusterWorker`](#class-yourworker-extends-threadworkerclusterworker) - [`YourWorker.hasTaskFunction(name)`](#yourworkerhastaskfunctionname) @@ -82,7 +82,7 @@ This method is available on both pool implementations and returns an array of th This method is available on both pool implementations and returns a boolean promise. -### `Pool options` +### Pool options An object with these properties: @@ -123,7 +123,7 @@ An object with these properties: Default: `true` - `restartWorkerOnError` (optional) - Restart worker on uncaught error in this pool. Default: `true` -- `enableEvents` (optional) - Events integrated with async resource emission enablement in this pool. +- `enableEvents` (optional) - Pool events integrated with async resource emission enablement. Default: `true` - `enableTasksQueue` (optional) - Tasks queue per worker enablement in this pool. Default: `false`