lib
A number of useful library functions
Warning!
This module is retained for compatibility. It may disappear without warning in a future release.
Functions
flush_receive/0
Flushes the message buffer of the current process.
error_message/2
Prints error message
in accordance with
. Similar to io:format/2
, see
io(3).
progname/0
Returns the name of the script that started the current Erlang session.
nonl/1
Removes the last newline character, if any, in
.
send/2
This function to makes it possible to send a message using
the apply/3
BIF.
sendw/2
As send/2
, but waits for an answer. It is implemented
as follows:
sendw(To, Msg) -> To ! {self(),Msg}, receive Reply -> Reply end.
The message returned is not necessarily a reply to the message sent.