mirror of
https://github.com/danog/file.git
synced 2024-12-12 09:19:48 +01:00
19 lines
331 B
PHP
19 lines
331 B
PHP
<?php
|
|
|
|
namespace Amp\File\Test;
|
|
|
|
use Amp\File;
|
|
use Amp\Loop;
|
|
use function Amp\asyncCall;
|
|
|
|
class BlockingHandleTest extends HandleTest
|
|
{
|
|
protected function execute(callable $cb)
|
|
{
|
|
Loop::run(function () use ($cb) {
|
|
File\filesystem(new File\BlockingDriver);
|
|
asyncCall($cb);
|
|
});
|
|
}
|
|
}
|