Trait

org.scalajs.dom

ReadableStreamUnderlyingSource

Related Doc: package dom

Permalink

trait ReadableStreamUnderlyingSource[T] extends Object

See ¶4.2.3. The underlying source API of whatwg streams spec.

T

Type of the Chunks returned by the Stream

Annotations
@JSType()
Linear Supertypes
Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ReadableStreamUnderlyingSource
  2. Object
  3. Any
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. var autoAllocateChunkSize: UndefOr[Int]

    Permalink

    (byte streams only)

    (byte streams only)

    Can be set to a positive integer to cause the implementation to automatically allocate buffers for the underlying source code to write into.

    Annotations
    @JSOptional()
  6. var cancel: UndefOr[Function1[Any, UndefOr[Promise[Unit]]]]

    Permalink

    A function that is called whenever the consumer cancels the stream, via ReadableStream.cancel or ReadableStreamReader.cancel():scala\.scalajs\.js\.Promise[Unit]*.

    A function that is called whenever the consumer cancels the stream, via ReadableStream.cancel or ReadableStreamReader.cancel():scala\.scalajs\.js\.Promise[Unit]*. It takes as its argument the same value as was passed to those methods by the consumer. If the shutdown process is asynchronous, it can return a promise to signal success or failure; the result will be communicated via the return value of the cancel method that was called. Additionally, a rejected promise will error the stream, instead of letting it close. Throwing an exception is treated the same as returning a rejected promise.

    Annotations
    @JSOptional()
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

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

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

    Permalink
    Definition Classes
    Object
  13. def hashCode(): Int

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

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

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

    Permalink
    Definition Classes
    AnyRef
  17. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. final def notifyAll(): Unit

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

    Permalink
    Definition Classes
    Object
  20. var pull: UndefOr[Function1[ReadableStreamController[T], UndefOr[Promise[Unit]]]]

    Permalink

    A function that is called whenever the stream’s internal queue of chunks becomes not full, i.e.

    A function that is called whenever the stream’s internal queue of chunks becomes not full, i.e. whenever the queue’s desired size becomes positive. Generally, it will be called repeatedly until the queue reaches its high water mark (i.e. until the desired size becomes non-positive).

    This function will not be called until start successfully completes. Additionally, it will only be called repeatedly if it enqueues at least one chunk or fulfills a BYOB request; a no-op pull implementation will not be continually called.

    If the function returns a promise, then it will not be called again until that promise fulfills. (If the promise rejects, the stream will become errored.) This is mainly used in the case of pull sources, where the promise returned represents the process of acquiring a new chunk. Throwing an exception is treated the same as returning a rejected promise.

    Annotations
    @JSOptional()
  21. var start: UndefOr[Function1[ReadableStreamController[T], UndefOr[Promise[Unit]]]]

    Permalink

    A function that is called immediately during creation of the ReadableStream.

    A function that is called immediately during creation of the ReadableStream.

    If this setup process is asynchronous, it can return a promise to signal success or failure; a rejected promise will error the stream. Any thrown exceptions will be re-thrown by the ReadableStream constructor.

    Annotations
    @JSOptional()
  22. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  23. def toLocaleString(): String

    Permalink
    Definition Classes
    Object
  24. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  25. var type: UndefOr[ReadableStreamType]

    Permalink

    Can be set to "bytes" to signal that the constructed ReadableStream is a readable byte stream.

    Can be set to "bytes" to signal that the constructed ReadableStream is a readable byte stream.

    Setting any value other than "bytes" or undefined will cause the ReadableStream() constructor to throw an exception.

    Annotations
    @JSOptional()
  26. def valueOf(): Any

    Permalink
    Definition Classes
    Object
  27. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped