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

Comparing AnyEvent-Fork-RPC/RPC.pm (file contents):
Revision 1.31 by root, Sat Aug 31 16:35:33 2013 UTC vs.
Revision 1.32 by root, Sat Aug 31 19:51:25 2013 UTC

391use Errno (); 391use Errno ();
392use Guard (); 392use Guard ();
393 393
394use AnyEvent; 394use AnyEvent;
395 395
396our $VERSION = 1.1; 396our $VERSION = 1.2;
397 397
398=item my $rpc = AnyEvent::Fork::RPC::run $fork, $function, [key => value...] 398=item my $rpc = AnyEvent::Fork::RPC::run $fork, $function, [key => value...]
399 399
400The traditional way to call it. But it is way cooler to call it in the 400The traditional way to call it. But it is way cooler to call it in the
401following way: 401following way:
796knows nothing about (why else would one use the async backend if not for 796knows nothing about (why else would one use the async backend if not for
797the ability to register watchers?), the event loop would often happily 797the ability to register watchers?), the event loop would often happily
798continue. 798continue.
799 799
800This is why the asynchronous backend explicitly calls C<CORE::exit> when 800This is why the asynchronous backend explicitly calls C<CORE::exit> when
801it is done (it will raise an exception under other circumstances, which 801it is done (under other circumstances, such as when there is an I/O error
802might lead to the process not exiting on it's own). 802and there is outstanding data to write, it will log a fatal message via
803L<AnyEvent::Log>, also causing the program to exit).
803 804
804You can override this by specifying a function name to call via the C<done> 805You can override this by specifying a function name to call via the C<done>
805parameter instead. 806parameter instead.
806 807
807=back 808=back

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines