INNER CODE UNIT · TypeScript

emitContainerReports

getwud/wud · app/event/index.ts:43

export function emitContainerReports(containerReports) {
    eventEmitter.emit(WUD_CONTAINER_REPORTS, containerReports);
}

/**
 * Register to ContainersResult event.
 * @param handler
 */
export function registerContainerReports(handler) {
    const wrapped = (...args) => {
        const res = handler(...args);
        if (res && typeof res.then === 'function') {
            pendingHandlers.push(res);
        }
        return res;
    };
    wrappedContainerReportsHandlers.set(handler, wrapped);
    eventEmitter.on(WUD_CONTAINER_REPORTS, wrapped);

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…