1
0
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:
Niklas Keller 2017-03-12 19:47:08 +01:00
parent ba0e9ffb93
commit 9797e7a4d0
3 changed files with 5 additions and 7 deletions

View File

@ -43,8 +43,7 @@ Loop::run(function () {
};
yield new Coroutine($generator($emitter));
} catch (\Exception $exception) {
printf("Exception: %s\n", $exception);
}
});
});

View File

@ -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);
}
});
});

View File

@ -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);
}
});
});