swoole_async_readfile
Read a file asynchronously
Description
bool 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 read from the file.
Return Values
Returns true
on success or false
on failure.