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:
parent
20bb51e926
commit
4f7da94194
@ -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);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user