Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing .gcsafe in asyncsync #22

Open
zevv opened this issue Feb 12, 2020 · 1 comment
Open

missing .gcsafe in asyncsync #22

zevv opened this issue Feb 12, 2020 · 1 comment

Comments

@zevv
Copy link

@zevv zevv commented Feb 12, 2020

.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

This comment has been minimized.

Copy link
Author

@zevv zevv commented Feb 12, 2020

$ 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 added a commit to zevv/asynctools that referenced this issue Feb 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.