export type I_Async_Monitor = { readonly report_process_started: () => undefined; readonly report_process_finished: () => undefined; }; /** * this function helps in keeping track of ongoing async operations * async operations are registered and when finished reported as such. * when all ongoing operations are finished the onEnd callback is called * * this function is specifically useful for async map functions * * @param callback this callback creates a scope within which the counter is provided * @param onEnd this callback will be called when all ongoing operations are finished */ export default function (parameters: { monitoring_phase: ($: I_Async_Monitor) => undefined; on_all_finished: () => undefined; }): undefined;