asynctools icon indicating copy to clipboard operation
asynctools copied to clipboard

missing .gcsafe in asyncsync

Open zevv opened this issue 4 years ago • 2 comments

.nimble/pkgs/asynctools-0.1.1/asynctools/asyncsync.nim(159, 15) Error: type mismatch: got <proc (){.closure.}>
but expected one of: 
proc callSoon(cbproc: proc () {.gcsafe.})
  first type mismatch at position: 1
  required type for cbproc: proc (){.closure, gcsafe.}
  but expression 'wakeupAll' is of type: proc (){.closure.}
  This expression is not GC-safe. Annotate the proc with {.gcsafe.} to get extended error information.

expression: callSoon(wakeupAll)

zevv avatar Feb 12 '20 14:02 zevv

$ nim -V
Nim Compiler Version 1.1.1 [Linux: amd64]
Compiled at 2020-01-29
Copyright (c) 2006-2019 by Andreas Rumpf

git hash: 2ecef8f779b6e5639145a5b2d2aaac6d9775c9eb
active boot switches: -d:danger

zevv avatar Feb 12 '20 14:02 zevv

we should close this now that https://github.com/cheatfate/asynctools/pull/19 was merged

timotheecour avatar Jun 29 '21 07:06 timotheecour