projects
/
m6w6
/
seekat
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
drop async-interop
[m6w6/seekat]
/
examples
/
generator.php
diff --git
a/examples/generator.php
b/examples/generator.php
index 1fd81e60e1edf0296e241bf9556a7101ca26c28a..88b69cd004c9eddc6bd2e1b84520f0cfec7def8f 100755
(executable)
--- a/
examples/generator.php
+++ b/
examples/generator.php
@@
-11,7
+11,7
@@
$log->pushHandler((new Monolog\Handler\StreamHandler(STDERR))->setLevel(Monolog\
$cli = new http\Client("curl", "seekat");
$cli = new http\Client("curl", "seekat");
-$api = new API(API\Future\
react
(), [
+$api = new API(API\Future\
amp
(), [
"Authorization" => "token ".getenv("GITHUB_TOKEN")
], null, $cli, $log);
"Authorization" => "token ".getenv("GITHUB_TOKEN")
], null, $cli, $log);
@@
-38,7
+38,7
@@
$api(function($api) {
$events = yield $next;
}
return $count;
$events = yield $next;
}
return $count;
-})->
when
(function($error, $count) {
+})->
onResolve
(function($error, $count) {
printf("Listed %d events\n", $count);
});
printf("Listed %d events\n", $count);
});