1
0
mirror of https://github.com/danog/file.git synced 2024-12-02 09:17:57 +01:00
file/test/ParallelHandleTest.php

15 lines
369 B
PHP
Raw Normal View History

<?php
2016-08-30 21:05:14 +02:00
namespace Amp\File\Test;
use Amp\Parallel\Worker\DefaultPool;
class ParallelHandleTest extends HandleTest {
protected function lRun(callable $cb) {
\Amp\Loop::run(function() use ($cb) {
2016-08-30 21:05:14 +02:00
\Amp\File\filesystem(new \Amp\File\ParallelDriver(new DefaultPool));
\Amp\Promise\rethrow(new \Amp\Coroutine($cb()));
2016-08-30 21:05:14 +02:00
});
}
}