1
0
mirror of https://github.com/danog/file.git synced 2024-11-30 04:19:39 +01:00
file/test/BlockingHandleTest.php
Aaron Piotrowski a8af5a281d Parallel driver
2016-08-30 14:05:14 -05:00

13 lines
347 B
PHP

<?php declare(strict_types = 1);
namespace Amp\File\Test;
class BlockingHandleTest extends HandleTest {
protected function lRun(callable $cb) {
\Interop\Async\Loop::execute(function() use ($cb) {
\Amp\File\filesystem(new \Amp\File\BlockingDriver);
\Amp\rethrow(new \Amp\Coroutine($cb()));
});
}
}