Swoole\Async::write

Write data to a file stream asynchronously.

Description

public static void Swoole\Async::write(
    string $filename,
    string $content,
    int $offset = ?,
    callable $callback = ?
)

Parameters

filename

The filename being written.

content

The content writing to the file.

offset

The offset.

callback