« Swoole\Async::read
Swoole\Async::set »

Swoole\Async::readFile

(PECL swoole >= 1.9.0)

Swoole\Async::readFile — Read a file asynchronously.

説明

public static function Swoole\Async::readFile(string $filename, callable $callback): void

パラメータ

filename

The filename of the file being read.

callback
function callback(string $filename, string $content): mixed
filename

The name of the file.

content

The content read from the file.

関連キーワード:
Swoole   Async   filename   Read   asynchronously   read   readFile   callback   content   swoole   static   callable   mixed
関連する関数・ページ:
swoole-async.read   class.swoole-async   swoole-async.write   swoole-async.writefile   swoole-async.set   swoole-async.dnslookup