Skip to content

WritableStream

Values

abort

let abort: (
WebAPI.FileAPI.writableStream<'w>,
~reason: JSON.t=?,
) => Promise.t<unit>

Parameters

WebAPI.FileAPI.writableStream option< JSON.t >

Return type

Promise.t< unit >

close

let close: WebAPI.FileAPI.writableStream<'w> => Promise.t<unit>

Parameters

WebAPI.FileAPI.writableStream

Return type

Promise.t< unit >

getWriter

let getWriter: WebAPI.FileAPI.writableStream<
'w,
> => WebAPI.FileAPI.writableStreamDefaultWriter<'w>

make

let make: (
~underlyingSink: WebAPI.FileAPI.underlyingSink<'w>=?,
~strategy: WebAPI.FileAPI.queuingStrategy<'w>=?,
) => WebAPI.FileAPI.writableStream<'w>