X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=examples%2Fhooks.php;h=37cb8e0ed2f895f9e58d3d4dbcf6b6f11ea4d0de;hb=9a040d85befdbd12577200f964403a0bf9490a30;hp=ad236925ffbcde60278c96dce3eed549e7b9e06f;hpb=0dcd2b11631fcf57602514e13fae9d31bbb79000;p=m6w6%2Fseekat diff --git a/examples/hooks.php b/examples/hooks.php index ad23692..37cb8e0 100755 --- a/examples/hooks.php +++ b/examples/hooks.php @@ -9,6 +9,7 @@ $cli = new http\Client("curl", "seekat"); $cli->configure([ "max_host_connections" => 10, "max_total_connections" => 50, + "use_eventloop" => false, ]); $log = new Monolog\Logger("seekat"); @@ -24,7 +25,7 @@ $api(function() use($api) { "affiliation" => "owner" ]); while ($repos) { - $next = $repos->next(); + $next = next($repos); $batch = []; foreach ($repos as $repo) {