mirror of
https://github.com/danog/file.git
synced 2024-11-30 04:19:39 +01:00
15 lines
369 B
PHP
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()));
|
|
});
|
|
}
|
|
}
|