The containing class is available as IO\WriteHandleConvenienceMethodsTrait in the www repository.
IO\WriteHandleConvenienceMethodsTrait
public function writeAllAsync( string $data, ?int $timeout_ns = NULL, ): Awaitable<void>;
string $data
?int $timeout_ns = NULL
Awaitable<void>