Guest User

Untitled

a guest
Dec 12th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. trait Node { actor:Actor =>
  2. def send(actorRef:ActorRef, m:Any) { actorRef.tell(m) }
  3. def reply(m:Any) { sender ! m }
  4. def forward(actorRef:ActorRef, m:Any) { actorRef.forward(m) }
  5. def actorOf(props:Props):ActorRef = actor.context.actorOf(props)
  6. def actorFor(actorPath:ActorPath):ActorRef = actor.context.actorFor(actorPath)
  7. }
Add Comment
Please, Sign In to add comment