Documentation gives example of usage in iex - and it works there:
http://elixir-lang.org/getting-started/processes.html#send-and-receive
Though it doesn't work inside of script:
$ elixir e.exs
** (CompileError) e.exs:6: undefined function flush/0
(elixir) lib/code.ex:363: Code.require_file/2
I found that this function is part of some IEx.Helpers
https://hexdocs.pm/iex/master/IEx.Helpers.html
But prepending use IEx.Helpers or use IEx at the beginning of script doesn't give effect.
$ iex e.exs- Onorio Catenacci