src/viztracer/web_dist/v19.0-139bff4a5/traceconv_bundle.js
/**
 * Create a promise with exposed resolve and reject callbacks.
 */
Create a promise with exposed resolve and reject callbacks.
Create a promise with exposed resolve and reject callbacks .
function defer() {
    let resolve = null;
    let reject = null;
    const p = new Promise((res, rej) => [resolve, reject] = [res, rej]);
    return Object.assign(p, { resolve, reject });
}
function defer ( ) { let resolve = null ; let reject = null ; const p = new Promise ( ( res , rej ) => [ resolve , reject ] = [ res , rej ] ) ; return Object . assign ( p , { resolve , reject } ) ; }
Create a promise with exposed resolve and reject callbacks.
Create a promise with exposed resolve and reject callbacks .