瀏覽代碼

新增gen_srv

master
AICells 4 年之前
父節點
當前提交
0dcb632fd7
共有 1 個檔案被更改,包括 18 行新增0 行删除
  1. +18
    -0
      src/gen_srv.erl

+ 18
- 0
src/gen_srv.erl 查看文件

@ -123,6 +123,24 @@ enterLoopOpt().
{'ok', {pid(), reference()}} |
{'error', term()}.
-type timeoutAction() ::
timeoutNewAction() |
timeoutCancelAction() |
timeoutUpdateAction().
-type timeoutNewAction() ::
{{'gTimeout', Name :: term()}, Time :: timeouts(), EventContent :: term()} | % Set the generic_timeout option
{{'gTimeout', Name :: term()}, Time :: timeouts(), EventContent :: term(), Options :: ([timeoutOption()])} | % Set the generic_timeout option
-type timeoutCancelAction() ::
{'c_gTimeout', Name :: term()} |
-type timeoutUpdateAction() ::
{{'u_gTimeout', Name :: term()}, EventContent :: term()} |
-type timer() :: #{TimeoutType :: atom() => {TimerRef :: reference(), TimeoutMsg :: term()}}.
-type action() :: timeout() | hibernate | {doAfter, term()} | timeoutAction()
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% start stop API start %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-spec start(Module :: module(), Args :: term(), Opts :: [startOpt()]) -> startRet().

Loading…
取消
儲存