1
0
mirror of https://github.com/danog/file.git synced 2025-01-22 13:21:13 +01:00
file/test/ParallelDriverTest.php

15 lines
369 B
PHP
Raw Normal View History

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