lib/bundle.js
/**
 * Run an iteration of the message loop.
 *
 * This will process all pending dispatchers in the queue. Dispatchers
 * which are added to the queue while the message loop is running will
 * be processed on the next message loop cycle.
 */
Run an iteration of the message loop.
This will process all pending dispatchers in the queue. Dispatchers
which are added to the queue while the message loop is running will
be processed on the next message loop cycle.
Run an iteration of the message loop . This will process all pending dispatchers in the queue . Dispatchers which are added to the queue while the message loop is running will be processed on the next message loop cycle .
function runMessageLoop() {
    frameId = void 0;
    if (dispatchQueue.empty) {
        return;
    }
    if (dispatchQueue.back !== null) {
        dispatchQueue.push(null);
    }
    while (!dispatchQueue.empty) {
        var handler = dispatchQueue.pop();
        if (handler === null) {
            wakeUpMessageLoop();
            return;
        }
        dispatchMessage(dispatcherMap.get(handler), handler);
    }
}
function runMessageLoop ( ) { frameId = void 0 ; if ( dispatchQueue . empty ) { return ; } if ( dispatchQueue . back !== null ) { dispatchQueue . push ( null ) ; } while ( ! dispatchQueue . empty ) { var handler = dispatchQueue . pop ( ) ; if ( handler === null ) { wakeUpMessageLoop ( ) ; return ; } dispatchMessage ( dispatcherMap . get ( handler ) , handler ) ; } }
Run an iteration of the message loop.
Run an iteration of the message loop .
// Clear the frame id so the next wake up call can be scheduled. // If the queue is empty, there is nothing else to do. // Add a null sentinel value to the end of the queue. The queue // will only be processed up to the first null value. This means // that messages posted during this cycle will execute on the next // cycle of the loop. If the last value in the array is null, it // means that an exception was thrown by a message handler and the // loop had to be restarted. // The message dispatch loop. If the dispatcher is the null sentinel, // the processing of the current block of messages is complete and // another loop is scheduled. Otherwise, the pending message is // dispatched to the message handler.