Skip to main content
Module

x/workerio/mod.ts>WorkerWriter#write

🦕 Deno module to translate Worker's system of messages into Reader and Writer
Go to Latest
method WorkerWriter.prototype.write
import { WorkerWriter } from "https://deno.land/x/workerio@v3.1.0/mod.ts";

Writes p.byteLength bytes of data to the Worker using postMessage.

Note that this method does NOT guarantee that the data has been posted to the peer. Please refer to the following link for more information: https://github.com/lambdalisue/deno-workerio/issues/5

Parameters

p: Uint8Array

The buffer to write.

Returns

Promise<number>

A promise resolving to the number of bytes written.