Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface WritableStreamDefaultWriter<W>

This Streams API interface is the object returned by WritableStream.getWriter() and once created locks the < writer to the WritableStream ensuring that no other streams can write to the underlying sink.

Type parameters

  • W

Hierarchy

  • WritableStreamDefaultWriter

Index

Properties

Readonly closed

closed: Promise<void>

Readonly desiredSize

desiredSize: number | null

Readonly ready

ready: Promise<void>

Methods

abort

  • abort(reason?: any): Promise<void>
  • Parameters

    • Optional reason: any

    Returns Promise<void>

close

  • Returns Promise<void>

releaseLock

  • releaseLock(): void
  • Returns void

write

  • Parameters

    • chunk: W

    Returns Promise<void>

Generated using TypeDoc