Extend status api
This commit is contained in:
parent
94aa173858
commit
5680b191ee
|
@ -186,8 +186,10 @@ ensure_stopped(Id, Timeout) ->
|
||||||
|
|
||||||
stop(Pid) -> gen_statem:stop(Pid).
|
stop(Pid) -> gen_statem:stop(Pid).
|
||||||
|
|
||||||
status(Pid) ->
|
status(Pid) when is_pid(Pid) ->
|
||||||
gen_statem:call(Pid, status).
|
gen_statem:call(Pid, status);
|
||||||
|
status(Id) ->
|
||||||
|
status(name(Id)).
|
||||||
|
|
||||||
%% @doc This function is to be evaluated on message/batch receiver side.
|
%% @doc This function is to be evaluated on message/batch receiver side.
|
||||||
-spec import_batch(batch(), fun(() -> ok)) -> ok.
|
-spec import_batch(batch(), fun(() -> ok)) -> ok.
|
||||||
|
|
Loading…
Reference in New Issue