Swoole\Async::readFile

Read a file asynchronously.

Description

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

Parameters

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.