From 1ab67a38cefe2215f89285c2fb6517247b1eef74 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Wed, 9 Aug 2023 22:25:03 +0200 Subject: [PATCH] docs: add missing api worker section ToC MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- docs/api.md | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.34.1