June 2014
Intermediate to advanced
300 pages
7h 12m
English
Today we’ll see how to create and stop processes, send and receive messages, and detect when a process has terminated.
In Erlang, and therefore Elixir, an actor is called a process. In most environments a process is a heavyweight entity that consumes lots of resources and is expensive to create. An Elixir process, by contrast, is very lightweight—lighter weight even than most systems’ threads, both in terms of resource consumption and startup cost. Elixir programs typically create thousands of processes without problems and don’t normally need to resort to the equivalent of thread pools ...
Read now
Unlock full access