(promise, onComplete, onError, onProgress)
| 676 | promise._setState(targetState); |
| 677 | } |
| 678 | function then(promise, onComplete, onError, onProgress) { |
| 679 | var result = new ThenPromise(promise); |
| 680 | var asyncOpID = _Trace._traceAsyncOperationStarting("WinJS.Promise.then"); |
| 681 | pushListener(promise, { promise: result, c: onComplete, e: onError, p: onProgress, asyncOpID: asyncOpID }); |
| 682 | return result; |
| 683 | } |
| 684 | |
| 685 | // |
| 686 | // Internal implementation detail promise, ThenPromise is created when a promise needs |
nothing calls this directly
no test coverage detected