1 | =head1 NAME |
1 | =head1 NAME |
2 | |
2 | |
3 | AnyEvent::Fork::RPC - simple RPC extension for AnyEvent::Fork |
3 | AnyEvent::Fork::RPC - simple RPC extension for AnyEvent::Fork |
4 | |
|
|
5 | THE API IS NOT FINISHED, CONSIDER THIS A BETA RELEASE |
|
|
6 | |
4 | |
7 | =head1 SYNOPSIS |
5 | =head1 SYNOPSIS |
8 | |
6 | |
9 | use AnyEvent::Fork::RPC; |
7 | use AnyEvent::Fork::RPC; |
10 | # use AnyEvent::Fork is not needed |
8 | # use AnyEvent::Fork is not needed |
… | |
… | |
28 | $cv->recv; |
26 | $cv->recv; |
29 | |
27 | |
30 | =head1 DESCRIPTION |
28 | =head1 DESCRIPTION |
31 | |
29 | |
32 | This module implements a simple RPC protocol and backend for processes |
30 | This module implements a simple RPC protocol and backend for processes |
33 | created via L<AnyEvent::Fork>, allowing you to call a function in the |
31 | created via L<AnyEvent::Fork> (or L<AnyEvent::Fork::Remote>), allowing you |
34 | child process and receive its return values (up to 4GB serialised). |
32 | to call a function in the child process and receive its return values (up |
|
|
33 | to 4GB serialised). |
35 | |
34 | |
36 | It implements two different backends: a synchronous one that works like a |
35 | It implements two different backends: a synchronous one that works like a |
37 | normal function call, and an asynchronous one that can run multiple jobs |
36 | normal function call, and an asynchronous one that can run multiple jobs |
38 | concurrently in the child, using AnyEvent. |
37 | concurrently in the child, using AnyEvent. |
39 | |
38 | |
… | |
… | |
786 | |
785 | |
787 | =head1 SEE ALSO |
786 | =head1 SEE ALSO |
788 | |
787 | |
789 | L<AnyEvent::Fork>, to create the processes in the first place. |
788 | L<AnyEvent::Fork>, to create the processes in the first place. |
790 | |
789 | |
|
|
790 | L<AnyEvent::Fork::Remote>, like above, but helpful for remote processes. |
|
|
791 | |
791 | L<AnyEvent::Fork::Pool>, to manage whole pools of processes. |
792 | L<AnyEvent::Fork::Pool>, to manage whole pools of processes. |
792 | |
793 | |
793 | =head1 AUTHOR AND CONTACT INFORMATION |
794 | =head1 AUTHOR AND CONTACT INFORMATION |
794 | |
795 | |
795 | Marc Lehmann <schmorp@schmorp.de> |
796 | Marc Lehmann <schmorp@schmorp.de> |