Skip to content

Instantly share code, notes, and snippets.

@lpil
Created July 15, 2020 19:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lpil/f8503f24bc7e82108c1adbc470b4c5bf to your computer and use it in GitHub Desktop.
Save lpil/f8503f24bc7e82108c1adbc470b4c5bf to your computer and use it in GitHub Desktop.
pub fn init(spec: Spec(Nil)) {
spec
|> add(
worker(start_child1)
|> with_state(fn(_state, pid) { pid }),
)
|> add(worker(start_child2))
|> add(worker(start_child3))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment