function beginPromise()
    {
        return new Promise((resolve, reject) =>
        {
            fnResolve = resolve;
            fnReject  = reject;
        });
    }
/**
     * Creates a promise.
     *
     * @return {Promise} a Promise whose resolve/reject are exposed to the rest of this object
     */
Creates a promise.
@return {Promise} a Promise whose resolve/reject are exposed to the rest of this object
Creates a promise . @return { Promise } a Promise whose resolve / reject are exposed to the rest of this object
function beginPromise()
    {
        return new Promise((resolve, reject) =>
        {
            fnResolve = resolve;
            fnReject  = reject;
        });
    }
function beginPromise ( ) { return new Promise ( ( resolve , reject ) => { fnResolve = resolve ; fnReject = reject ; } ) ; }
Creates a promise.
Creates a promise .