Erlang::Parser::Node::Receive - a receive statement
Receives a message from the mailbox which matches any pattern (and guard); optionally with a timeout.
alts
A list of Erlang::Parser::Node::Alts which are matched against the process mailbox.
aft
An optional Erlang::Parser::Node::ReceiveAfter.
print
Pretty-prints the node to its filehandle argument.
receive {X, Y} when is_bool(X) -> X; {X, Y, Z} -> Y + Z; _ -> io:format("wth~n", []) after 10000 -> {error, timeout} end
To install Erlang::Parser, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Erlang::Parser
CPAN shell
perl -MCPAN -e shell install Erlang::Parser
For more information on module installation, please visit the detailed CPAN module installation guide.