repo.or.cz
/
hiphop-php.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Updating submodules
[hiphop-php.git]
/
hphp
/
test
/
slow
/
generator_fail.php
blob
3cfe9a98a1228597f26f875b4bd5b4c00688fdd4
1
<
?hh
2
3
async
function
gen
() {
4
await RescheduleWaitHandle
::
create
(
0
,
0
);
5
throw new
Exception
(
"lol"
);
6
yield
4
;
7
}
8
9
<<
__EntryPoint
>>
10
async
function
main
() {
11
ResumableWaitHandle
::
setOnFailCallback
((
$a
,
$b
) ==> {
12
asio_get_running
();
13
});
14
await
gen
()->
next
();
15
}