StreamReader class

Constructors

StreamReader(string, Queue<IStreamChunk, () => void)

Properties

close
isClosed
read
streamId

Constructor Details

StreamReader(string, Queue<IStreamChunk, () => void)

new StreamReader(streamId: string, readerQueue: Queue<IStreamChunk<TBuffer>>, onClose: () => void)

Parameters

streamId
string
readerQueue
Queue<IStreamChunk<TBuffer>>
onClose
() => void

Property Details

close

close: () => void

Property Value

() => void

isClosed

isClosed: boolean

Property Value

boolean

read

read: () => Promise<IStreamChunk<TBuffer>>

Property Value

() => Promise<IStreamChunk<TBuffer>>

streamId

streamId: string

Property Value

string