Skip Menu |

This queue is for tickets about the AnyEvent-Beanstalk CPAN distribution.

Report information
The Basics
Id: 60094
Status: new
Priority: 0/
Queue: AnyEvent-Beanstalk

People
Owner: Nobody in particular
Requestors: david [...] hisel.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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.