ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/AnyEvent-MP/MP.pm
(Generate patch)

Comparing AnyEvent-MP/MP.pm (file contents):
Revision 1.153 by root, Sat Nov 2 01:30:49 2019 UTC vs.
Revision 1.154 by root, Fri Nov 15 09:47:38 2019 UTC

650In the last form (message), a message of the form C<$rcvport, @msg, 650In the last form (message), a message of the form C<$rcvport, @msg,
651@reason> will be C<snd>. 651@reason> will be C<snd>.
652 652
653Monitoring-actions are one-shot: once messages are lost (and a monitoring 653Monitoring-actions are one-shot: once messages are lost (and a monitoring
654alert was raised), they are removed and will not trigger again, even if it 654alert was raised), they are removed and will not trigger again, even if it
655turns out that the port is still alive. 655turns out that the port is still alive (but monitoring actions added after
656that will again trigger).
656 657
657As a rule of thumb, monitoring requests should always monitor a remote 658As a rule of thumb, monitoring requests should always monitor a remote
658port locally (using a local C<$rcvport> or a callback). The reason is that 659port locally (using a local C<$rcvport> or a callback). The reason is that
659kill messages might get lost, just like any other message. Another less 660kill messages might get lost, just like any other message. Another less
660obvious reason is that even monitoring requests can get lost (for example, 661obvious reason is that even monitoring requests can get lost (for example,
876#=item $cb2 = timeout $seconds, $cb[, @args] 877#=item $cb2 = timeout $seconds, $cb[, @args]
877 878
878=item cal $port, @msg, $callback[, $timeout] 879=item cal $port, @msg, $callback[, $timeout]
879 880
880A simple form of RPC - sends a message to the given C<$port> with the 881A simple form of RPC - sends a message to the given C<$port> with the
881given contents (C<@msg>), but adds a reply port to the message. 882given contents (C<@msg>), but appends a reply port to the message.
882 883
883The reply port is created temporarily just for the purpose of receiving 884The reply port is created temporarily just for the purpose of receiving
884the reply, and will be C<kil>ed when no longer needed. 885the reply, and will be C<kil>ed when no longer needed.
885 886
886A reply message sent to the port is passed to the C<$callback> as-is. 887A reply message sent to the port is passed to the C<$callback> as-is.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines