From bb96f02ae877e04230dac85c040e66656b7d2ef0 Mon Sep 17 00:00:00 2001 From: Eugene Kabanov Date: Wed, 24 Apr 2024 03:16:23 +0300 Subject: [PATCH] Fix `wait(future)` declaration signature. (#537) --- chronos/internal/asyncfutures.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chronos/internal/asyncfutures.nim b/chronos/internal/asyncfutures.nim index 2b92e744..ad0b847b 100644 --- a/chronos/internal/asyncfutures.nim +++ b/chronos/internal/asyncfutures.nim @@ -1866,7 +1866,7 @@ proc wait*(fut: InternalRaisesFuture, timeout = InfiniteDuration): auto = waitImpl(fut, retFuture, timeout) -proc wait*(fut: InternalRaisesFuture, deadline: InternalRaisesFuture): auto = +proc wait*(fut: InternalRaisesFuture, deadline: SomeFuture): auto = type T = type(fut).T E = type(fut).E