Beispiel #1
0
void ReadableStream::readInternalPostAction()
{
    ASSERT(m_state == Readable);
    if (isQueueEmpty() && m_isDraining)
        closeInternal();
    callPullIfNeeded();
}
Beispiel #2
0
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();
}
Beispiel #3
0
void ReadableStream::didSourceStart()
{
    m_isStarted = true;
    callPullIfNeeded();
}