MCPcopy
hub / github.com/winjs/winjs / then

Function then

src/js/WinJS/Promise/_StateMachine.js:678–683  ·  view source on GitHub ↗
(promise, onComplete, onError, onProgress)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

pushListenerFunction · 0.85

Tested by

no test coverage detected