Communication between active agents

agent A {
  loop {    -- 1
    out a;  -- 2
  }
}

agent B {
  loop {    -- 1
    in b;   -- 2
  }
}