To run this program, just call the main function in the Example module as follows:
When we run this program, we see the output of the blocking call first, then the output of the two processes. The processes’ output may be interleaved because processes are being run concurrently by the Elixir runtime.
Next, we’ll look at a complement to concurrent processes in Elixir programs: message passing and processes communication.