Swoole\Async::readFile
Read a file asynchronously.
説明
public static void Swoole\Async::readFile(string $filename
, callable $callback
)
パラメータ
-
filename
-
The filename of the file being read.
-
callback
-
mixed callback(string $filename
, string $content
)
-
filename
-
The name of the file.
-
content
-
The content readed from the file.