by wolf4earth · 6y ago · 0 comments
Using child specifications one can pass the function to be executed in the `Task` alongside:
children = [
Child1,
Child2,
{Task, &MyModule.run_on_start/0}
]
# ...
Effectively does the same as using the `handle_continue` of a `GenServer` but in a more clear, straight forward manner.No comments yet.