Module gen
Data Types
server_ref()
server_ref() = atom() | pid()
Function Index
| call/4 | Perform a call on a gen server. |
Function Details
call/4
call(ServerRef::server_ref(), Label::atom(), Request::term(), Timeout::timeout()) -> {ok, Reply::term()} | {error, Reason::term()}
ServerRef: the server to callLabel: the label for the message, typically system or $gen_callRequest: the message to sendTimeout: timeout for sending the message
returns: {ok, Result} or raises an exit exception
Perform a call on a gen server. This API not documented by OTP, yet Elixir uses it, so this function matches the current OTP-28 behavior.