From 37af142ab6910c8297fe36863316b947d2c13e35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonatan=20K=C5=82osko?= Date: Fri, 23 Aug 2024 18:11:12 +0200 Subject: [PATCH] Increase timeouts for frame render and append (#466) --- lib/kino/frame.ex | 6 +++--- lib/kino/process/tracer.ex | 2 +- lib/kino/terminator.ex | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/kino/frame.ex b/lib/kino/frame.ex index 8b83016e..baf16a13 100644 --- a/lib/kino/frame.ex +++ b/lib/kino/frame.ex @@ -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 @@ -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 """ @@ -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 diff --git a/lib/kino/process/tracer.ex b/lib/kino/process/tracer.ex index eb277e69..958d59c8 100644 --- a/lib/kino/process/tracer.ex +++ b/lib/kino/process/tracer.ex @@ -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 diff --git a/lib/kino/terminator.ex b/lib/kino/terminator.ex index 901f79a2..e1ddaa8c 100644 --- a/lib/kino/terminator.ex +++ b/lib/kino/terminator.ex @@ -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