Replies: 2 comments 2 replies
-
The last call to Sidenote: in Livebook you usually want to use |
Beta Was this translation helpful? Give feedback.
0 replies
-
Ok, thks again. I added child_spec = %{id: Test, start: {Test, :new, []}}
Kino.start_child(child_spec)
Supervisor.start_link([child_spec], strategy: :one_for_one, name: MySup)
Process.whereis(Test) |> Kino.inspect()
[{Test, pid, :worker, [Test]}] = Supervisor.which_children(MySup) |> Kino.inspect()
Process.exit(pid, :true)
Process.alive?(pid) |> Kino.inspect()
Process.sleep(1000)
[{Test, pid, :worker, [Test]}] = Supervisor.which_children(MySup) |> Kino.inspect()
Process.alive?(pid) |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was just checking the Supervisor and I have some trouble running the simple code below. This returns "1st argument: not a pid"
I checked the same code with IEx. When I loop the code, I need a long Process.sleep. Is there an Erlang limitation, amplified in Livebook?
Beta Was this translation helpful? Give feedback.
All reactions