Swoole swoole_async_readfile
(PECL swoole >= 1.9.0)
swoole_async_readfile — 비동기식으로 파일 읽기
설명
swoole_async_readfile(string $filename
, callable $callback
): bool
매개변수
filename
- 읽고 있는 파일의 파일 이름입니다.
callback
-
callback(string
$filename
, string$content
): mixedfilename
- 파일의 이름입니다.
content
- 파일에서 읽은 내용입니다.
반환 값
성공하면 true
를, 실패하면 false
를 반환합니다.