Skip to content

Commit

Permalink
Increase timeouts for frame render and append (#466)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonatanklosko committed Aug 23, 2024
1 parent c65867b commit 37af142
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions lib/kino/frame.ex
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ defmodule Kino.Frame do
def render(frame, term, opts \\ []) do
opts = Keyword.validate!(opts, [:to, :temporary])
destination = update_destination_from_opts!(opts)
GenServer.call(frame.pid, {:render, term, destination})
GenServer.call(frame.pid, {:render, term, destination}, :infinity)
end

defp update_destination_from_opts!(opts) do
Expand Down Expand Up @@ -122,7 +122,7 @@ defmodule Kino.Frame do
def append(frame, term, opts \\ []) do
opts = Keyword.validate!(opts, [:to, :temporary])
destination = update_destination_from_opts!(opts)
GenServer.call(frame.pid, {:append, term, destination})
GenServer.call(frame.pid, {:append, term, destination}, :infinity)
end

@doc """
Expand Down Expand Up @@ -150,7 +150,7 @@ defmodule Kino.Frame do
@doc false
@spec get_items(t()) :: list(term())
def get_items(frame) do
GenServer.call(frame.pid, :get_items)
GenServer.call(frame.pid, :get_items, :infinity)
end

@impl true
Expand Down
2 changes: 1 addition & 1 deletion lib/kino/process/tracer.ex
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ defmodule Kino.Process.Tracer do
end

def get_trace_info(tracer) do
GenServer.call(tracer, :get_trace_info)
GenServer.call(tracer, :get_trace_info, :infinity)
end

@impl true
Expand Down
2 changes: 1 addition & 1 deletion lib/kino/terminator.ex
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ defmodule Kino.Terminator do
"""
def start_task(parent, fun) do
Task.start_link(fn ->
GenServer.call(@name, {:monitor, self(), parent})
GenServer.call(@name, {:monitor, self(), parent}, :infinity)
fun.()
end)
end
Expand Down

0 comments on commit 37af142

Please sign in to comment.