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 | |
4 | |
5 | THE API IS NOT FINISHED, CONSIDER THIS A TECHNOLOGY DEMO |
5 | THE API IS NOT FINISHED, CONSIDER THIS A BETA RELEASE |
6 | |
6 | |
7 | =head1 SYNOPSIS |
7 | =head1 SYNOPSIS |
8 | |
8 | |
9 | use AnyEvent::Fork::RPC; |
9 | use AnyEvent::Fork::RPC; |
10 | # use AnyEvent::Fork is not needed |
10 | # use AnyEvent::Fork is not needed |
… | |
… | |
307 | use Guard (); |
307 | use Guard (); |
308 | |
308 | |
309 | use AnyEvent; |
309 | use AnyEvent; |
310 | use AnyEvent::Fork; # we don't actually depend on it, this is for convenience |
310 | use AnyEvent::Fork; # we don't actually depend on it, this is for convenience |
311 | |
311 | |
312 | our $VERSION = 0.1; |
312 | our $VERSION = 0.2; |
313 | |
313 | |
314 | =item my $rpc = AnyEvent::Fork::RPC::run $fork, $function, [key => value...] |
314 | =item my $rpc = AnyEvent::Fork::RPC::run $fork, $function, [key => value...] |
315 | |
315 | |
316 | The traditional way to call it. But it is way cooler to call it in the |
316 | The traditional way to call it. But it is way cooler to call it in the |
317 | following way: |
317 | following way: |