(ctx, reason)
| 5894 | }; |
| 5895 | |
| 5896 | function checkCancel(ctx, reason) { |
| 5897 | if (ctx.cancelPromise != null) { |
| 5898 | if (arguments.length > 1) { |
| 5899 | ctx.cancelPromise._reject(reason); |
| 5900 | } else { |
| 5901 | ctx.cancelPromise._cancel(); |
| 5902 | } |
| 5903 | ctx.cancelPromise = null; |
| 5904 | return true; |
| 5905 | } |
| 5906 | return false; |
| 5907 | } |
| 5908 | |
| 5909 | function succeed() { |
| 5910 | return finallyHandler.call(this, this.promise._target()._settledValue()); |
no outgoing calls
no test coverage detected