src/promissory-arbiter.js
function createResolver () {
    var
      resolver = {
        settled: false,
        fulfilledValues: [],
        rejectedValues: []
      },
      promise = new Promise(function promiseResolver (fulfill, reject) {
        resolver.fulfill = fulfill;
        resolver.reject = reject;
      });

    promise.fulfilled = 0;
    promise.rejected = 0;
    promise.pending = 0;
    resolver.promise = promise;

    return resolver;
  }
function createResolver () {
    var
      resolver = {
        settled: false,
        fulfilledValues: [],
        rejectedValues: []
      },
      promise = new Promise(function promiseResolver (fulfill, reject) {
        resolver.fulfill = fulfill;
        resolver.reject = reject;
      });

    promise.fulfilled = 0;
    promise.rejected = 0;
    promise.pending = 0;
    resolver.promise = promise;

    return resolver;
  }
function createResolver ( ) { var resolver = { settled : false , fulfilledValues : [ ] , rejectedValues : [ ] } , promise = new Promise ( function promiseResolver ( fulfill , reject ) { resolver . fulfill = fulfill ; resolver . reject = reject ; } ) ; promise . fulfilled = 0 ; promise . rejected = 0 ; promise . pending = 0 ; resolver . promise = promise ; return resolver ; }
Creates a resolver object that keeps track of promise related values
Creates a resolver object that keeps track of promise related values