import { ipcMain } from 'electron' ; ElectronMainContext export class AppInstances { public static waitForStarted ( name ) { return new Promise < void > ( resolve => { ipcMain . once ( 'app-instance-started:' + name , ( ) => { resolve ( ) ; } ) ; } ) ; } }