use whynot::{new_runtime, RuntimeConfig, RuntimeKind};
use whynot::process::ProcRuntime;
fn main() {
let cfg = RuntimeConfig { debug: false, ..Default::default() };
let _rt = new_runtime(RuntimeKind::Process(cfg.clone())).unwrap();
let h1 = ProcRuntime::call_async_with_cfg(cfg.clone(), "greet".to_string(), vec!["Milton".into()]);
let h2 = ProcRuntime::call_async_with_cfg(cfg.clone(), "add".to_string(), vec![7.into(), 9.into()]);
let r1 = h1.join().unwrap().unwrap();
let r2 = h2.join().unwrap().unwrap();
println!("greet: {:?}", r1.result);
println!("add: {:?}", r2.result);
}