Copyright © (C) 2019, Maxim Fedorov
Behaviours: gen_server.
Authors: Maxim Fedorov (maximfca@gmail.com).
handle_call/3 | |
handle_cast/2 | |
handle_info/2 | |
init/1 | |
start/1 | Starts the server with a different name and/or file. |
start_link/1 | Starts the server. |
stop/1 | Stops the server, if started stand-alone. |
terminate/2 |
handle_call(Request, From, State) -> any()
handle_cast(Request, State) -> any()
handle_info(Monitor_sample, State) -> any()
init(X1) -> any()
start(Target::file:filename() | file:io_device()) -> {ok, Pid::pid()} | {error, Reason::term()}
Starts the server with a different name and/or file. Server is started outside of supervision tree.
start_link(Filename::string() | file:io_device()) -> {ok, Pid::pid()} | ignore | {error, Reason::term()}
Starts the server
stop(Pid::pid()) -> ok
Stops the server, if started stand-alone. If it was started as a part of supervision tree, server will restart.
terminate(Reason, State) -> any()
Generated by EDoc