| 354 | } |
| 355 | |
| 356 | void AsyncReadableStream::emitOnData() |
| 357 | { |
| 358 | Request request; |
| 359 | while (readQueue.popFront(request)) |
| 360 | { |
| 361 | eventData.emit(request.bufferID); |
| 362 | buffers->unrefBuffer(request.bufferID); // 1b. refBuffer in push |
| 363 | if (state == State::Pausing or state == State::Paused or (state == State::Ended and not readQueue.isEmpty())) |
| 364 | { |
| 365 | break; |
| 366 | } |
| 367 | } |
| 368 | maybeDestroyEndedReadable(); |
| 369 | } |
| 370 | |
| 371 | bool AsyncReadableStream::push(AsyncBufferView::ID bufferID, size_t newSize) |
| 372 | { |
nothing calls this directly
no test coverage detected