From 843099d8aea0b39fa4c92c5f8d2725e230c03efb Mon Sep 17 00:00:00 2001 From: Dominik Picheta Date: Sun, 26 Feb 2017 15:58:07 +0100 Subject: [PATCH] Fixes upcoming tests. --- lib/upcoming/asyncdispatch.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/upcoming/asyncdispatch.nim b/lib/upcoming/asyncdispatch.nim index 823b19138c..d2de4a465e 100644 --- a/lib/upcoming/asyncdispatch.nim +++ b/lib/upcoming/asyncdispatch.nim @@ -1669,7 +1669,7 @@ proc readAll*(future: FutureStream[string]): Future[string] {.async.} = ## specified future stream is retrieved. result = "" while true: - let (hasValue, value) = await future.take() + let (hasValue, value) = await future.read() if hasValue: result.add(value) else: