From 2ef7469d7121b16434b14de51e9a571592cf2cd9 Mon Sep 17 00:00:00 2001 From: cheatfate Date: Fri, 20 Jul 2018 12:11:38 +0300 Subject: [PATCH] Fix comments. --- asyncdispatch2/asyncloop.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/asyncdispatch2/asyncloop.nim b/asyncdispatch2/asyncloop.nim index eedfbf14..30857e94 100644 --- a/asyncdispatch2/asyncloop.nim +++ b/asyncdispatch2/asyncloop.nim @@ -648,8 +648,8 @@ proc wait*[T](fut: Future[T], timeout = -1): Future[T] = ## Returns a future which will complete once future ``fut`` completes ## or if timeout of ``timeout`` milliseconds has been expired. ## - ## If ``timeout`` is ``-1``, then result future will be completed only - ## when ``fut`` become completed. + ## If ``timeout`` is ``-1``, then statement ``await wait(fut)`` is + ## equal to ``await fut``. var retFuture = newFuture[T]("asyncdispatch.wait") proc continuation(udata: pointer) {.gcsafe.} = if not retFuture.finished: