February 2018
Intermediate to advanced
552 pages
13h 46m
English
Don't create the Props object each and every time we create an Actor object. It's good to provide the Props object in that Actor's companion object, as shown here:
Example-1:class WFActor extends Actor {
// receive function implementation
}
object WFActor {
defwfProps = Props[WFActor]
}
Example-2:class WFActor(wfTeller: WFTeller) extends Actor {
// receive function implementation
}
object WFActor {
defwfProps(database: Databse) = Props[WFActor] (classOf[WFActor], database)
}
Develop all of our Reactive System's component's functions using the Future and Promise API so that we can perform Reactive Asynchronous programming by default.
Read now
Unlock full access