function createAsyncComponent(comp, delay = 0) {
        return {
            setup(props, { slots }) {
                const p = new Promise(resolve => {
                    setTimeout(() => {
                        resolve(() => h(comp, props, slots));
                    }, delay);
                });
                // in Node 12, due to timer/nextTick mechanism change, we have to wait
                // an extra tick to avoid race conditions
                deps.push(p.then(() => Promise.resolve()));
                return p;
            }
        };
    }
// a simple async factory for testing purposes only.
a simple async factory for testing purposes only.
a simple async factory for testing purposes only .
function createAsyncComponent(comp, delay = 0) {
        return {
            setup(props, { slots }) {
                const p = new Promise(resolve => {
                    setTimeout(() => {
                        resolve(() => h(comp, props, slots));
                    }, delay);
                });
                deps.push(p.then(() => Promise.resolve()));
                return p;
            }
        };
    }
function createAsyncComponent ( comp , delay = 0 ) { return { setup ( props , { slots } ) { const p = new Promise ( resolve => { setTimeout ( ( ) => { resolve ( ( ) => h ( comp , props , slots ) ) ; } , delay ) ; } ) ; deps . push ( p . then ( ( ) => Promise . resolve ( ) ) ) ; return p ; } } ; }
a simple async factory for testing purposes only.
a simple async factory for testing purposes only .
// in Node 12, due to timer/nextTick mechanism change, we have to wait // an extra tick to avoid race conditions