1
0
mirror of https://github.com/danog/amp.git synced 2024-11-27 04:24:42 +01:00

Put Loop::get() back

Why do I keep thinking null uses the current loop... bah
This commit is contained in:
Aaron Piotrowski 2016-05-26 18:15:33 -05:00
parent dd70850682
commit 3edab2dfd3

View File

@ -56,7 +56,7 @@ function wait(Awaitable $awaitable) {
$exception = $e;
$value = $v;
});
});
}, Loop::get());
if (!$resolved) {
throw new \LogicException("Loop emptied without resolving awaitable");