Send a request to an actor.
Doubler doubler = new Doubler(getMailbox()); SMBuilder smb = new SMBuilder(); smb._send(doubler, 21, "rsp"); smb._return(new ObjectFunc() { public Object get(StateMachine sm) { return sm.get("rsp"); } }); smb.call(rp); Response: 42
|
|