CountQueuingStrategy
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:3039
The CountQueuingStrategy interface of the Streams API provides a built-in chunk counting queuing strategy that can be used when constructing streams.
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new CountQueuingStrategy(
init):CountQueuingStrategy
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:3040
Parameters
Section titled “Parameters”Returns
Section titled “Returns”CountQueuingStrategy
Accessors
Section titled “Accessors”highWaterMark
Section titled “highWaterMark”Get Signature
Section titled “Get Signature”get highWaterMark():
number
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:3046
The read-only CountQueuingStrategy.highWaterMark property returns the total number of chunks that can be contained in the internal queue before backpressure is applied.
Returns
Section titled “Returns”number
Implementation of
Section titled “Implementation of”Get Signature
Section titled “Get Signature”get size(): (
chunk?) =>number
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:3048
Returns
Section titled “Returns”(
chunk?):number
Parameters
Section titled “Parameters”chunk?
Section titled “chunk?”any
Returns
Section titled “Returns”number