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

15 lines
374 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) {
2017-01-11 14:22:06 +01:00
\AsyncInterop\Loop::execute(function() use ($cb) {
2016-08-30 21:05:14 +02:00
\Amp\File\filesystem(new \Amp\File\ParallelDriver(new DefaultPool));
\Amp\rethrow(new \Amp\Coroutine($cb()));
});
}
}