1
0
mirror of https://github.com/danog/parallel.git synced 2024-11-30 04:39:01 +01:00

rename Pause to Delayed

This commit is contained in:
Stefano Torresi 2017-05-26 11:55:08 +02:00 committed by GitHub
parent 149dbe4ba3
commit dccd2c08e0

View File

@ -4,7 +4,7 @@ require dirname(__DIR__).'/vendor/autoload.php';
use Amp\Loop;
use Amp\Parallel\Threading\Thread;
use Amp\Pause;
use Amp\Delayed;
Loop::run(function () {
$timer = Loop::repeat(1000, function () {
@ -32,7 +32,7 @@ Loop::run(function () {
});
print "Waiting 2 seconds to send start data...\n";
yield new Pause(2000);
yield new Delayed(2000);
yield $context->send("Start data");