1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
|
[;1m send(Dest, Msg)[0m
Sends a message and returns [;;4mMsg[0m. This is the same as using the
send operator: [;;4mDest ! Msg[0m.
[;;4mDest[0m can be a remote or local process identifier, an alias, a
(local) port, a locally registered name, or a tuple [;;4m{RegName,[0m
[;;4mNode}[0m for a registered name at another node.
The function fails with a [;;4mbadarg[0m run-time error if [;;4mDest[0m is an
atom name, but this name is not registered. This is the only case
when [;;4msend[0m fails for an unreachable destination [;;4mDest[0m (of
correct type).
[;;4mNote[0m
For some important information about distributed signals, see
the Blocking Signaling Over Distribution section in the
Processes chapter of the Erlang Reference Manual.
[;1m send(Dest, Msg, Options)[0m
Either sends a message and returns [;;4mok[0m, or does not send the
message but returns something else (see below). Otherwise the same
as [;;4merlang:send/2[0m.
For more detailed explanation and warnings, see [;;4m[0m
[;;4merlang:send_nosuspend/2,3[0m.
Options:
• [;;4mnosuspend[0m - If the sender would have to be suspended to do
the send, [;;4mnosuspend[0m is returned instead.
• [;;4mnoconnect[0m - If the destination node would have to be
auto-connected to do the send, [;;4mnoconnect[0m is returned
instead.
[;;4mNote[0m
For some important information about distributed signals, see
the Blocking Signaling Over Distribution section in the
Processes chapter of the Erlang Reference Manual.
[;;4mWarning[0m
As with [;;4merlang:send_nosuspend/2,3[0m: use with extreme care.
|