Skip Menu |

This queue is for tickets about the IO-AIO CPAN distribution.

Report information
The Basics
Id: 112654
Status: new
Priority: 0/
Queue: IO-AIO

People
Owner: Nobody in particular
Requestors: jim.avera [...] gmail.com
Cc:
AdminCc:

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



Subject: Fixes for aio_group documentation [patch]
The example code in the pod for aio_group has a couple of errors which can be a bit confusing for people just learning the api. Here's a patch: --- AIO.pm 2016-03-03 03:29:14.504782927 +0000 +++ AIO.pm.NEW 2016-03-03 03:31:45.953037255 +0000 @@ -1632,10 +1632,10 @@ $grp->add (aio_unlink "..."); add $grp aio_stat "...", sub { - $_[0] or return $grp->result ("error"); + $_[0]==0 or return $grp->result ("error"); # add another request dynamically, if first succeeded - add $grp aio_open "...", sub { + add $grp aio_open ..., sub { $grp->result ("ok"); }; };