Accepted answer

While Akka was suggested--and is superior to the following solution--Scala does have its own, built in Actor model much like Akka which can do you want you want. Examples can be found here:

You'll probably want either reactWithin or receiveWithin, the documentation for which can be found here:$.html

Related Query

More Query from same tag