Swoole Swoole\Async 클래스
(PECL swoole >= 1.9.0)
소개
클래스 개요
class Swoole\Async {
/* Methods */
public static dnsLookup(string $hostname, callable $callback): void
public static read(
string $filename,
callable $callback,
int $chunk_size = ?,
int $offset = ?
): bool
public static readFile(string $filename, callable $callback): void
public static set(array $settings): void
public static write(
string $filename,
string $content,
int $offset = ?,
callable $callback = ?
): void
public static writeFile(
string $filename,
string $content,
callable $callback = ?,
string $flags = ?
): void
}
목차
- Swoole\Async::dnsLookup — IP 조회에 대한 비동기 및 비차단 호스트 이름.
- Swoole\Async::read — 파일 스트림을 비동기적으로 읽습니다.
- Swoole\Async::readFile — 파일을 비동기적으로 읽습니다.
- Swoole\Async::set — 비동기 I/O 옵션을 업데이트합니다.
- Swoole\Async::write — 비동기적으로 파일 스트림에 데이터를 씁니다.
- Swoole\Async::writeFile — 설명