The Swoole\Async class

(PECL swoole >= 1.9.0)

Introduction

Class synopsis

classSwoole\Async {
publicstaticdnsLookup(string$hostname, callable$callback): void
publicstaticread(
    string$filename,
    callable$callback,
    int$chunk_size = ?,
    int$offset = ?
): bool
publicstaticreadFile(string$filename, callable$callback): void
publicstaticset(array$settings): void
publicstaticwrite(
    string$filename,
    string$content,
    int$offset = ?,
    callable$callback = ?
): void
publicstaticwriteFile(
    string$filename,
    string$content,
    callable$callback = ?,
    string$flags = ?
): void
}

Table of Contents

To Top