class Utils { static delay ( millis ) { return new Promise < void > ( resolve => { setTimeout ( resolve , millis ) ; } ) ; } static safeInvoke ( callback ? , ... args ) { if ( typeof callback === 'function' ) { setImmediate ( callback . bind ( undefined , ... args ) ) ; } } } export default Utils ;