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().

Зареждане…
Отказ
Запис