Skip to content

Commit

Permalink
call correct internal checker
Browse files Browse the repository at this point in the history
  • Loading branch information
arnetheduck committed Nov 17, 2023
1 parent 00b059d commit 40eadd6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chronos/internal/asyncfutures.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand All @@ -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],
Expand Down

0 comments on commit 40eadd6

Please sign in to comment.