QueuingStrategy

@JSType
trait QueuingStrategy[T] extends Object
Type parameters:
T

Type of the Chunks returned by the Stream

class Object
trait Any
class Object
trait Matchable
class Any

Value members

Inherited methods

def hasOwnProperty(v: String): Boolean
Inherited from:
Object
def isPrototypeOf(v: Object): Boolean
Inherited from:
Object
def propertyIsEnumerable(v: String): Boolean
Inherited from:
Object
def toLocaleString(): String
Inherited from:
Object
def valueOf(): Any
Inherited from:
Object

Abstract fields

@ExposedJSMember
var highWaterMark: Int

A non-negative number indicating the high water mark of the stream using this queuing strategy.

A non-negative number indicating the high water mark of the stream using this queuing strategy.

@ExposedJSMember
var size: Function1[T, Int]

(non-byte streams only)

(non-byte streams only)

The result is used to determine backpressure, manifesting via the appropriate desiredSize property. For readable streams, it also governs when the underlying source's ReadableStreamUnderlyingSource.pull method is called.

A function that computes and returns the finite non-negative size of the given chunk value.