void ReadableStream::readInternalPostAction() { ASSERT(m_state == Readable); if (isQueueEmpty() && m_isDraining) closeInternal(); callPullIfNeeded(); }
void ReadableStream::readPostAction() { ASSERT(m_state == Readable); if (isQueueEmpty()) { if (m_isDraining) { m_closed->resolve(ToV8UndefinedGenerator()); m_state = Closed; } else { m_ready->reset(); m_state = Waiting; } } callPullIfNeeded(); }
void ReadableStream::didSourceStart() { m_isStarted = true; callPullIfNeeded(); }