code: function(success) {
  				if (this.ended())
  					throw new Error("promise already resolved or rejected");
  				this._resolved = true;
  				this._paused = false;
  				this._initialised = true;
  				if (typeof success !== "undefined")
  					this._state.success = success;
  				var instanceOfError = this._state.success instanceof Error;
  				this._state.error = instanceOfError ? this._state.success : this._state.error;
  				this._state.success = instanceOfError ? null : this._state.success;
  				this._next();
  				return this;
  			}
docs: ______________________________________ PUBLIC CHAINABLE API