Options
All
  • Public
  • Public/Protected
  • All
Menu

Class StreamInstance<Chunk, Err>

Type parameters

  • Chunk: string | Buffer

  • Err = any

Hierarchy

  • Instance<Chunk, Err>
    • StreamInstance

Implements

Index

Properties

Readonly asyncEmit

asyncEmit: EmitFunc<Promise<void>, Chunk, Err>

Readonly emit

emit: EmitFunc<void, Chunk, Err>

Readonly on

on: EventedStream.ListenerModifier<Chunk, Err>

Readonly once

once: EventedStream.ListenerModifier<Chunk, Err>

Methods

[Symbol.asyncIterator]

  • [Symbol.asyncIterator](): AsyncIterator<Chunk>

getChunks

  • getChunks(): ReadonlyArray<Chunk>

getMethodCalls

  • getMethodCalls(): ReadonlyArray<MethodCall<Chunk, Err>>

write

  • write(chunk: Chunk): void

Generated using TypeDoc