nl_tokens: ////////////////////////////////////////////////////////////////////////////////////////////// Only Function Definitions Beyond This Point The main process of starting an xGraph System .
pl_tokens: async function initiate ( ) { log . i ( '--Nexus/Initiate' ) ; let Setup = { } ; let Start = { } ; cacheInterface = new CacheInterface ( { path : __options . cache , log } ) ; let cache = await cacheInterface . loadCache ( ) ; Start = cache . start ; Setup = cache . setup ; Stop = Object . assign ( Stop , cache . stop ) ; await setup ( ) ; await start ( ) ; run ( ) ; ///////////////////////////////////////////////////////////////////////////////////////// // // Only Helper Functions Beyond This Point // // /**
  				 * Call setup on the required Module Apexes
  				 */ async function setup ( ) { <mask> . i ( '--Nexus/Setup' ) ; //build the setup promise array let setupArray = [ ] ; for ( let pid in Setup ) { setupArray . push ( new Promise ( ( resolve , _reject ) => { let com = { } ; com . Cmd = Setup [ pid ] ; com . Passport = { } ; com . Passport . To = pid ; com . Passport . Pid = genPid ( ) ; sendMessage ( com , resolve ) ; } ) ) ; } await Promise . all ( setupArray ) ; log . v ( '--Nexus: All Setups Complete' ) ; } /**
  				 * Call Start on the required Module Apexes
  				 */ async function start ( ) { log . i ( '--Nexus/Start' ) ; //build the setup promise array let startArray = [ ] ; for ( let pid in Start ) { startArray . push ( new Promise ( ( resolve , _reject ) => { let com = { } ; com . Cmd = Start [ pid ] ; com . Passport = { } ; com . Passport . To = pid ; com . Passport . Pid = genPid ( ) ; sendMessage ( com , resolve ) ; } ) ) ; } await Promise . all ( startArray ) ; log . v ( '--Nexus: All Starts Complete' ) ; } /**
  				 * Send Finished command if the process was generated
  				 */ function run ( ) { log . i ( '--Nexus/Run' ) ; if ( 'send' in process ) { process . send ( '{"Cmd":"Finished"}' ) ; } } }