From 844e08af93fa959c529f566efab2d0f7abf23e2e Mon Sep 17 00:00:00 2001 From: Chris McCord Date: Wed, 23 Aug 2023 16:43:39 -0400 Subject: [PATCH] Update lib/phoenix_live_view/async_result.ex MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: José Valim --- lib/phoenix_live_view/async_result.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/phoenix_live_view/async_result.ex b/lib/phoenix_live_view/async_result.ex index b9669613da..ee70dde326 100644 --- a/lib/phoenix_live_view/async_result.ex +++ b/lib/phoenix_live_view/async_result.ex @@ -101,7 +101,7 @@ defmodule Phoenix.LiveView.AsyncResult do do_reduce(result, acc, fun) end - def reduce(%AsyncResult{}, acc, _fun), do: acc + def reduce(%AsyncResult{}, {_, acc}, _fun), do: {:done, acc} defp do_reduce(_list, {:halt, acc}, _fun), do: {:halted, acc} defp do_reduce(list, {:suspend, acc}, fun), do: {:suspended, acc, &do_reduce(list, &1, fun)}