call(ChannelRef, Msg) -> OTP 21.0
call(ChannelRef, Msg, Timeout) -> Reply | {error, Reason} OTP 21.0
Types
ChannelRef = pid()start_link/4 Msg = term()Timeout = timeout()Reply = term()Reason = closed | timeoutMakes a synchronous call to the channel process by sending a message and waiting until a reply arrives, or a time-out occurs. The channel calls Module:handle_call/3 to handle the message. If the channel process does not exist, {error, closed} is returned.