function executeCallbacks(state, value, callbacks) {
  setTimeout(function() {
    if (state == PENDING) {
      return;
    }

    while (callbacks.length) {
      callbacks.shift().call(undefined, state, value);
    }
  }, 0);
}
/**
 * Executes all callbacks.
 * @param state - Promise state
 * @param value - Promise value
 * @param callbacks - Promise callbacks
 */
Executes all callbacks.
@param state - Promise state
@param value - Promise value
@param callbacks - Promise callbacks
Executes all callbacks . @param state - Promise state @param value - Promise value @param callbacks - Promise callbacks
function executeCallbacks(state, value, callbacks) {
  setTimeout(function() {
    if (state == PENDING) {
      return;
    }
    while (callbacks.length) {
      callbacks.shift().call(undefined, state, value);
    }
  }, 0);
}
function executeCallbacks ( state , value , callbacks ) { setTimeout ( function ( ) { if ( state == PENDING ) { return ; } while ( callbacks . length ) { callbacks . shift ( ) . call ( undefined , state , value ) ; } } , 0 ) ; }
Executes all callbacks.
Executes all callbacks .