Swoole Swoole\Async::readFile

(PECL swoole >= 1.9.0)

Swoole\Async::readFile — 파일을 비동기적으로 읽습니다.


설명

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


매개변수

filename
읽고 있는 파일의 파일 이름입니다.
callback

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

filename
파일의 이름입니다.
content
파일에서 읽은 내용입니다.