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