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
- @JSType() @native() @JSGlobal()
- Alphabetic
- By Inheritance
- ReadableStreamController
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
ReadableStreamController(stream: ReadableStream[T] = null)
- stream
can be null
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
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
-
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
-
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
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
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
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hasOwnProperty(v: String): Boolean
- Definition Classes
- Object
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isPrototypeOf(v: Object): Boolean
- Definition Classes
- Object
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
propertyIsEnumerable(v: String): Boolean
- Definition Classes
- Object
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toLocaleString(): String
- Definition Classes
- Object
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
valueOf(): Any
- Definition Classes
- Object
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()