Swoole\Async::write
PHP function
Edit on GitHub ✎
(PECL swoole >= 1.9.0)
Write data to a file stream asynchronously.
Description
Swoole\Async::write(string $filename, string $content, [int $offset], [callable $callback]): void
Parameters
filenameThe filename being written.
contentThe content writing to the file.
offsetThe offset.
callback