From 052595785547d496a724fbf61c23fdafa51b246f Mon Sep 17 00:00:00 2001 From: AiCells <1713699517@qq.com> Date: Sat, 11 Jul 2020 13:02:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/gen_ipc.erl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gen_ipc.erl b/src/gen_ipc.erl index 8a0a6d9..5321b94 100644 --- a/src/gen_ipc.erl +++ b/src/gen_ipc.erl @@ -117,8 +117,8 @@ %% 如果有postponed 事件则 事件执行顺序为 超时添加和更新 + 零超时 + 当前事件 + 反序的Postpone事件 + LeftEvent %% 处理待处理的事件,或者如果没有待处理的事件,则服务器进入接收或休眠状态(当“hibernate”为“ true”时) -type initAction() :: -{trap_exit, Bool :: isTrapExit()} | % 设置是否捕捉信息 主要用于gen_event模式下 -eventAction(). + {trap_exit, Bool :: isTrapExit()} | % 设置是否捕捉信息 主要用于gen_event模式下 + eventAction(). -type eventAction() :: {'doAfter', Args :: term()} | % 设置执行某事件后是否回调 handleAfter @@ -164,7 +164,7 @@ eventAction(). {'u_sTimeout', EventContent :: term()}. -type replyAction() :: -{'reply', From :: from(), Reply :: term()}. + {'reply', From :: from(), Reply :: term()}. -type eventCallbackResult() :: {'reply', Reply :: term(), NewState :: term()} | % 用作gen_server模式时快速响应进入消息接收 @@ -185,7 +185,7 @@ eventAction(). commonCallbackResult(afterAction()). -type enterCallbackResult() :: -commonCallbackResult(enterAction()). + commonCallbackResult(enterAction()). -type commonCallbackResult(ActionType) :: {'kpS', NewState :: term()} | % {keep_status,NewData,[]}