class WritableStream

Supported only in the v8 engine. Introduced in Max v9.2.0.

A byte-oriented writable stream companion for piping.

Index

Constructors

Methods

new WritableStream(underlyingSink, strategy)

new WritableStream(underlyingSink?: any, strategy?: any);

Constructs a new instance of the WritableStream class

ParameterTypeDescription
optional underlyingSinkanyan object with optional start, write, close, and abort methods.
optional strategyanyan optional queuing strategy.

abort(reason)

Aborts the stream.

abort(reason?: any): Promise<void>;
NameTypeDescription
optional reasonany
Return ValuePromise<void>

close()

Closes the stream.

close(): Promise<void>;
NameTypeDescription
Return ValuePromise<void>

getWriter()

Acquires a writer and locks the stream.

getWriter(): WritableStreamDefaultWriter;
NameTypeDescription
Return ValueWritableStreamDefaultWriter