Subject: | POD example missing "->recv" |
In the POD, you have the example...
# fetch a job, with a callback
$client->reserve( sub { my $job = shift; process_job($job) });
When I tried running just "$client->reserve();" I noticed it returns an
AnyEvent::CondVar, so I added "->recv" and then got the proper
AnyEvent::Beanstalk::Job object.
Also, I recommend adding a non-callback example:
# fetch a job, without a callback
$client->watch('testqueue');
my $job2 = $client->reserve()->recv;
Cheers,
.dave.