Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Where do I put startup code in Elixir?.
Using child specifications one can pass the function to be executed in the `Task` alongside:
children = [ Child1, Child2, {Task, &MyModule.run_on_start/0} ] # ...
There are no comments on this comment yet.
Using child specifications one can pass the function to be executed in the `Task` alongside:
Effectively does the same as using the `handle_continue` of a `GenServer` but in a more clear, straight forward manner.