org.danielnixon.saferdom.experimental

ReadableStreamController

class ReadableStreamController[-T] extends Object

¶3.3 Class ReadableStreamController of whatwg spec

The ReadableStreamController constructor cannot be used directly; it only works on a ReadableStream that is in the middle of being constructed.

T

Type of the Chunks to be enqueued to the Stream

Annotations
@RawJSType() @native()
Linear Supertypes
Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ReadableStreamController
  2. Object
  3. Any
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ReadableStreamController(stream: ReadableStream[T] = null)

    stream

    can be null

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def close(): Unit

    The close method will close the controlled readable stream.

    The close method will close the controlled readable stream. Consumers will still be able to read any previously-enqueued chunks from the stream, but once those are read, the stream will become closed throws scala.scalajs.js.TypeError if this is not a readable controller

  9. def desiredSize: Int

    The desiredSize getter returns the desired size to fill the controlled stream’s internal queue.

    The desiredSize getter returns the desired size to fill the controlled stream’s internal queue. It can be negative, if the queue is over-full. An underlying source should use this information to determine when and how to apply backpressure.

    returns

    the size of the strem - no idea if this actually is an int

  10. def enqueue(chunk: Chunk[T]): UndefOr[Int]

    The enqueue method will enqueue a given chunk in the controlled readable stream.

    The enqueue method will enqueue a given chunk in the controlled readable stream.

    chunk

    throws scala.scalajs.js.RangeError if size is too big

    returns

    seems like its an undefOr[Int] of the size

  11. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  13. def error(e: Any): Unit

    The error method will error the readable stream, making all future interactions with it fail with the given error e.

    The error method will error the readable stream, making all future interactions with it fail with the given error e.

    e

    : an error - can this be any type? throws scala.scalajs.js.TypeError

  14. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  16. def hasOwnProperty(v: String): Boolean

    Definition Classes
    Object
  17. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  18. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  19. def isPrototypeOf(v: Object): Boolean

    Definition Classes
    Object
  20. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  21. final def notify(): Unit

    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  23. def propertyIsEnumerable(v: String): Boolean

    Definition Classes
    Object
  24. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  25. def toLocaleString(): String

    Definition Classes
    Object
  26. def toString(): String

    Definition Classes
    AnyRef → Any
  27. def valueOf(): Any

    Definition Classes
    Object
  28. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped