1
0
mirror of https://github.com/danog/file.git synced 2024-11-30 04:19:39 +01:00
file/test/ParallelHandleTest.php
2017-03-16 22:39:49 -05:00

15 lines
369 B
PHP

<?php
namespace Amp\File\Test;
use Amp\Parallel\Worker\DefaultPool;
class ParallelHandleTest extends HandleTest {
protected function lRun(callable $cb) {
\Amp\Loop::run(function() use ($cb) {
\Amp\File\filesystem(new \Amp\File\ParallelDriver(new DefaultPool));
\Amp\Promise\rethrow(new \Amp\Coroutine($cb()));
});
}
}