Skip to main content

inprocess

Function inprocess 

Source
pub fn inprocess(script: &str) -> Result<String, String>
Expand description

Start the mock IN-PROCESS and return its loopback address. This backs the intelligence.endpoints: mock:<script> convenience, so a config runs fully offline in ONE process: no key, no network, no second terminal. At most one server is started per distinct script string and the address is memoised, so repeated resolves of the same script share a listener instead of leaking a thread per call. Scripts are the same as the hidden mode’s (final | read | schedule | file:<playbook.json>).