1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
struct Context{ } fn flow(name:String,f:Fn(Provide<String>)){ spawnWithString0(f,name) } fn command(c:String,ctx:Inject<String>){ cmd(ctx,c) } flow("backend"){ sleep(5000) } flow("frontend"){ command("ls") } wait()