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