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: