How to Use Anonymous Functions

Implement handle_continue

We return {:ok, state, {:continue, :run}} from the init/1 callback, so we have to handle this message next. Within the handle_continue/2 callback, we perform the required work as soon as the process finishes initializing:

Get hands-on with 1200+ tech skills courses.