src/common/js/winjs/js/base.js
function timeout(timeoutMS) {
        var id;
        return new Promise(
            function (c) {
                if (timeoutMS) {
                    id = _Global.setTimeout(c, timeoutMS);
                } else {
                    _BaseCoreUtils._setImmediate(c);
                }
            },
            function () {
                if (id) {
                    _Global.clearTimeout(id);
                }
            }
        );
    }
function timeout(timeoutMS) {
        var id;
        return new Promise(
            function (c) {
                if (timeoutMS) {
                    id = _Global.setTimeout(c, timeoutMS);
                } else {
                    _BaseCoreUtils._setImmediate(c);
                }
            },
            function () {
                if (id) {
                    _Global.clearTimeout(id);
                }
            }
        );
    }
function timeout ( timeoutMS ) { var id ; return new Promise ( function ( c ) { if ( timeoutMS ) { id = _Global . setTimeout ( c , timeoutMS ) ; } else { _BaseCoreUtils . _setImmediate ( c ) ; } } , function ( ) { if ( id ) { _Global . clearTimeout ( id ) ; } } ) ; }
Promise is the user-creatable WinJS.Promise object.
Promise is the user - creatable WinJS . Promise object .