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");
};
};