1
0
mirror of https://github.com/danog/parallel.git synced 2025-01-22 14:01:14 +01:00

Use delay instead of checking the resolution value for sending to exited context

This commit is contained in:
Niklas Keller 2017-06-19 08:25:41 +02:00
parent 20bb51e926
commit 4f7da94194

View File

@ -2,6 +2,7 @@
namespace Amp\Parallel\Test;
use Amp\Delayed;
use Amp\Loop;
use Amp\Parallel\Sync\Internal\ExitSuccess;
use Amp\PHPUnit\TestCase;
@ -280,7 +281,8 @@ abstract class AbstractContextTest extends TestCase {
$context->start();
while (!yield $context->send(0));
yield new Delayed(1000);
yield $context->send(0);
});
}
}