Resolves a deferred with a cancellation value, but doesn't throw if the deferred has already been resolved.
Resolves a deferred with a cancellation value, but doesn't throw if the deferred has already been resolved.
maybeCancel() {
if (Pending.hasInstance(this._state)) {
this.cancel();
}
return this;
}