Observers are still pretty standard, also known as publisher / listener. You can use your own, or you can use some kind of actor-based solution if you want to receive asynchronous notifications.
On the functional side, this material is most often carried out through a functional reactive framework. There Naftoli Reactive , but Akka also provides a Dataflow
, which is a lot of basic concepts.
In addition, this is a field of research on the evolution of Scala, so you can be sure to see more of them.
source share