nl_tokens: Helper Functions as well as Entity definition
pl_tokens: async function <mask> ( code = 0 ) { log . i ( '--Nexus/Stop' ) ; //build the Stop promise array let stopTasks = [ ] ; log . i ( 'Nexus unloading node modules' ) ; log . v ( Object . keys ( require . cache ) . join ( '\n' ) ) ; for ( let pid in Stop ) { stopTasks . push ( new Promise ( ( resolve , _reject ) => { let com = { } ; com . Cmd = Stop [ pid ] ; com . Passport = { } ; com . Passport . To = pid ; com . Passport . Pid = genPid ( ) ; sendMessage ( com , resolve ) ; } ) ) ; } await Promise . all ( stopTasks ) ; log . v ( '--Nexus: All Stops Complete' ) ; dispatchEvent ( 'exit' , { exitCode : code } ) ; }