Skip to content

ReadableStream

Values

cancel

let cancel: (
WebAPI.FileAPI.readableStream<'r>,
~reason: JSON.t=?,
) => Promise.t<unit>

Parameters

WebAPI.FileAPI.readableStream option< JSON.t >

Return type

Promise.t< unit >

getReader

let getReader: (
WebAPI.FileAPI.readableStream<'r>,
~options: WebAPI.FileAPI.readableStreamGetReaderOptions=?,
) => WebAPI.FileAPI.readableStreamReader<'r>

make

let make: unit => WebAPI.FileAPI.readableStream<array<int>>

Parameters

unit

Return type

WebAPI.FileAPI.readableStream< array< int > >

make2

let make2: unit => unknown

Parameters

unit

Return type

unknown

make3

let make3: unit => unknown

Parameters

unit

Return type

unknown

pipeThrough

let pipeThrough: (
WebAPI.FileAPI.readableStream<'r>,
~transform: WebAPI.FileAPI.readableWritablePair<'t, 'r>,
~options: WebAPI.FileAPI.streamPipeOptions=?,
) => WebAPI.FileAPI.readableStream<'t>

pipeTo

let pipeTo: (
WebAPI.FileAPI.readableStream<'r>,
~destination: WebAPI.FileAPI.writableStream<'r>,
~options: WebAPI.FileAPI.streamPipeOptions=?,
) => Promise.t<unit>

tee

let tee: WebAPI.FileAPI.readableStream<
'r,
> => array<WebAPI.FileAPI.readableStream<unit>>

Parameters

WebAPI.FileAPI.readableStream

Return type

array< WebAPI.FileAPI.readableStream< unit > >