From: Jérôme Benoit Date: Wed, 9 Aug 2023 20:25:03 +0000 (+0200) Subject: docs: add missing api worker section ToC X-Git-Tag: v2.6.22~5 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=1ab67a38cefe2215f89285c2fb6517247b1eef74;p=poolifier.git docs: add missing api worker section ToC Signed-off-by: Jérôme Benoit --- diff --git a/docs/api.md b/docs/api.md index aad6e722..a7ec3d38 100644 --- a/docs/api.md +++ b/docs/api.md @@ -12,6 +12,11 @@ - [`ClusterPoolOptions extends PoolOptions`](#clusterpooloptions-extends-pooloptions) - [Worker](#worker) - [`class YourWorker extends ThreadWorker/ClusterWorker`](#class-yourworker-extends-threadworkerclusterworker) + - [`YourWorker.hasTaskFunction(name)`](#yourworkerhastaskfunctionname) + - [`YourWorker.addTaskFunction(name, fn)`](#yourworkeraddtaskfunctionname-fn) + - [`YourWorker.removeTaskFunction(name)`](#yourworkerremovetaskfunctionname) + - [`YourWorker.listTaskFunctions()`](#yourworkerlisttaskfunctions) + - [`YourWorker.setDefaultTaskFunction(name)`](#yourworkersetdefaulttaskfunctionname) ## Pool