* Returns the desired size to fill the stream’s internal queue. It can be negative, if the queue is over-full. * A producer can use this information to determine the right amount of data to write. * * It will be `null` if the stream cannot be successfully written to (due t
()
| 12485 | * the writer’s lock is released. |
| 12486 | */ |
| 12487 | get desiredSize() { |
| 12488 | if (!IsWritableStreamDefaultWriter(this)) { |
| 12489 | throw defaultWriterBrandCheckException("desiredSize"); |
| 12490 | } |
| 12491 | if (this._ownerWritableStream === void 0) { |
| 12492 | throw defaultWriterLockException("desiredSize"); |
| 12493 | } |
| 12494 | return WritableStreamDefaultWriterGetDesiredSize(this); |
| 12495 | } |
| 12496 | /** |
| 12497 | * Returns a promise that will be fulfilled when the desired size to fill the stream’s internal queue transitions |
| 12498 | * from non-positive to positive, signaling that it is no longer applying backpressure. Once the desired size dips |
nothing calls this directly
no test coverage detected