From 40eadd64ecfededc9d8f20a7aa350fb2b1dff8a0 Mon Sep 17 00:00:00 2001 From: Jacek Sieka Date: Fri, 17 Nov 2023 09:19:06 +0100 Subject: [PATCH] call correct internal checker --- chronos/internal/asyncfutures.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chronos/internal/asyncfutures.nim b/chronos/internal/asyncfutures.nim index 4903806f..87ea5e96 100644 --- a/chronos/internal/asyncfutures.nim +++ b/chronos/internal/asyncfutures.nim @@ -1584,7 +1584,7 @@ proc waitFor*[E](fut: InternalRaisesFuture[void, E]) = # {.raises: [E]} ## Must not be called recursively (from inside `async` procedures). ## ## See also `await`, `Future.read` - pollFor(fut).internalCheckComplete() + pollFor(fut).internalCheckComplete(E) proc read*[T: not void, E](fut: InternalRaisesFuture[T, E]): lent T = # {.raises: [E, FuturePendingError].} ## Retrieves the value of `fut`. @@ -1608,7 +1608,7 @@ proc read*[E](fut: InternalRaisesFuture[void, E]) = # {.raises: [E].} if not fut.finished(): raiseFuturePendingError(fut) - internalCheckComplete(fut) + internalCheckComplete(fut, E) proc `or`*[T, Y, E1, E2]( fut1: InternalRaisesFuture[T, E1],