mirror of
https://github.com/danog/amp.git
synced 2024-11-30 04:29:08 +01:00
Rename example to examples
This commit is contained in:
parent
ba0e9ffb93
commit
9797e7a4d0
@ -43,8 +43,7 @@ Loop::run(function () {
|
||||
};
|
||||
|
||||
yield new Coroutine($generator($emitter));
|
||||
|
||||
} catch (\Exception $exception) {
|
||||
printf("Exception: %s\n", $exception);
|
||||
}
|
||||
});
|
||||
});
|
@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env php
|
||||
<?php
|
||||
|
||||
require dirname(__DIR__) . '/vendor/autoload.php';
|
||||
require __DIR__ . '/../vendor/autoload.php';
|
||||
|
||||
use Amp\Coroutine;
|
||||
use Amp\Emitter;
|
||||
@ -43,8 +43,7 @@ Loop::run(function () {
|
||||
};
|
||||
|
||||
yield new Coroutine($generator($stream));
|
||||
|
||||
} catch (\Throwable $exception) {
|
||||
printf("Exception: %s\n", $exception);
|
||||
}
|
||||
});
|
||||
});
|
@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env php
|
||||
<?php
|
||||
|
||||
require dirname(__DIR__) . '/vendor/autoload.php';
|
||||
require __DIR__ . '/../vendor/autoload.php';
|
||||
|
||||
use Amp\Coroutine;
|
||||
use Amp\Listener;
|
||||
@ -42,4 +42,4 @@ Loop::run(function () {
|
||||
} catch (\Exception $exception) {
|
||||
printf("Exception: %s\n", $exception);
|
||||
}
|
||||
});
|
||||
});
|
Loading…
Reference in New Issue
Block a user