From 382bede5c4f724c84c1db1a7d8e332dca4db8a81 Mon Sep 17 00:00:00 2001 From: SisMaker <1713699517@qq.com> Date: Thu, 2 May 2024 01:26:52 +0800 Subject: [PATCH] =?UTF-8?q?ft=EF=BC=9A=20=E6=B7=BB=E5=8A=A0=E5=AE=9A?= =?UTF-8?q?=E6=97=B6=E5=87=BD=E6=95=B0=E6=89=A7=E8=A1=8C=E7=9A=84=E7=AD=96?= =?UTF-8?q?=E7=95=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ac5655b..3cf2559 100644 --- a/README.md +++ b/README.md @@ -11,8 +11,8 @@ Build Useage ----- startWork/1 开启指定数量的定时器工作者 - setTimer/2 随机一个定时器工作者然后设置定时器 - setTimer/3 指定选择定时器工作者策略然后设置定时器 + setTimer/2 随机一个定时器工作者然后设置定时器 默认一个定时器进程 新开一个进程执行定时到期的函数 + setTimer/3 指定选择定时器工作者策略然后设置定时器 默认新开一个进程执行定时到期的函数 setTimer/4 指定选择定时器工作者策略然后设置定时器 并指定执行的函数在定时器的进程 还是新spawn一个进程执行函数(一般来说轻度的函数可以就在定时器进程执行, 重度函数就新开一个进程执行) getTimer/1 获取定时器的信息 delTimer/1 删除一个定时器