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)}