code: function resolveWhen() {
            var dfd = pendings[handle];
            if (dfd) {
              dfd.forEach(function (promise) {
                promise.resolve(instance);
              });
              delete pendings[handle];
            }
          }
docs: Resolve any pending promises for this instance