diff --git a/lib/phoenix_live_view/async_result.ex b/lib/phoenix_live_view/async_result.ex index 0f27445081..b9669613da 100644 --- a/lib/phoenix_live_view/async_result.ex +++ b/lib/phoenix_live_view/async_result.ex @@ -81,7 +81,7 @@ defmodule Phoenix.LiveView.AsyncResult do alias Phoenix.LiveView.AsyncResult def count(%AsyncResult{result: result, ok?: true}), - do: Enum.count(result) + do: Enumerable.count(result) def count(%AsyncResult{}), do: 0