From dccd2c08e0172584ca809dee0926b87badc7a9ca Mon Sep 17 00:00:00 2001 From: Stefano Torresi Date: Fri, 26 May 2017 11:55:08 +0200 Subject: [PATCH] rename Pause to Delayed --- example/thread.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/example/thread.php b/example/thread.php index 37624bf..2e21b64 100755 --- a/example/thread.php +++ b/example/thread.php @@ -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");