fix type mismatch error in asyncstream join (#433)

This commit is contained in:
andri lim 2023-08-04 14:27:01 +07:00 committed by GitHub
parent a1eb30360b
commit 38c31e21d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -873,10 +873,10 @@ proc join*(rw: AsyncStreamRW): Future[void] =
else:
var retFuture = newFuture[void]("async.stream.writer.join")
proc continuation(udata: pointer) {.gcsafe.} =
proc continuation(udata: pointer) {.gcsafe, raises:[].} =
retFuture.complete()
proc cancellation(udata: pointer) {.gcsafe.} =
proc cancellation(udata: pointer) {.gcsafe, raises:[].} =
rw.future.removeCallback(continuation, cast[pointer](retFuture))
if not(rw.future.finished()):