Actors

An actor is similar to a class, but with one critical difference: an actor can have behaviours. Behaviours A behaviour is like a function, except that functions are synchronous and behaviours are asynchronous. In other words, when you call a function, the body of the function is executed immediatel…