* fixes #14402

* added a test case
This commit is contained in:
Andreas Rumpf 2020-07-08 08:21:55 +02:00 • committed by GitHub
commit 87f6a9592c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 27 additions and 1 deletions

View file

@ -96,7 +96,7 @@ proc read*[T](future: FutureStream[T]): owned(Future[(bool, T)]) =
if resFut.finished: return
# We don't want this callback called again.
future.cb = nil
#future.cb = nil
# The return value depends on whether the FutureStream has finished.
var res: (bool, T)