CountQueuingStrategy

E242827

CountQueuingStrategy is a built-in queuing strategy in the JavaScript Streams API that manages backpressure by counting the number of chunks in a stream’s internal queue.

All labels observed (1)

Label Occurrences
CountQueuingStrategy canonical 3

How this entity was disambiguated

Statements (46)

Predicate Object
instanceOf JavaScript built-in object
Web Streams API interface
queuing strategy
backpressureCondition queue size >= highWaterMark
canBePassedTo ReadableStream constructor
TransformStream constructor
category backpressure control mechanism
constructorSignature new CountQueuingStrategy(init)
contrastsWith ByteLengthQueuingStrategy
defaultBehavior treats every chunk as size 1
definedBy WHATWG
definedInSpecification WHATWG Streams Standard
environment Deno
Node.js
surface form: Node.js (Web Streams implementation)

web browsers
hasParameter init
hasProperty highWaterMark
size
highWaterMarkRole maximum desired queue size in chunks
highWaterMarkType number
initType QueuingStrategyInit
introducedFor simplifying count-based queuing
isConfigurable true
isConstructible true
isDeterministic true
isSerializable false
language JavaScript
manages number of chunks in internal queue
measurementUnit chunks
namespace global object in supporting environments
partOf Streams API
Web Streams API
propertyType(size) function
queueMetricBasis chunk count
queueMetricType count-based
queueSizeDependsOn number of enqueued chunks
requiresProperty highWaterMark
sizeFunctionInput chunk
sizeFunctionOutput 1 for any chunk
specStatus living standard
usedFor configuring readable stream queuing
configuring transform stream queuing
controlling stream queue size
managing backpressure
usedWith ReadableStream
TransformStream

How these facts were elicited

Referenced by (3)

Full triples — surface form annotated when it differs from this entity's canonical label.

Streams Standard definesConcept CountQueuingStrategy
ByteLengthQueuingStrategy comparedTo CountQueuingStrategy
ByteLengthQueuingStrategy relatedAPI CountQueuingStrategy