We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a82cd9 commit ae441ebCopy full SHA for ae441eb
test/DummyDriver.php
@@ -4,6 +4,8 @@
4
5
class DummyDriver implements \Interop\Async\Loop\Driver
6
{
7
+ use \Interop\Async\Loop\Registry;
8
+
9
public $defers;
10
public $handler;
11
public static $id = "a";
@@ -12,7 +14,7 @@ public function run() {
12
14
while (list($defer, $data) = array_shift($this->defers)) {
13
15
try {
16
$defer(self::$id++, $data);
- } catch (Exception $e) {
17
+ } catch (\Exception $e) {
18
if ($handler = $this->handler) {
19
$handler($e);
20
} else {
0 commit comments