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

example chat server in readme doesn't compile #9

Closed
Austaras opened this issue Oct 31, 2019 · 9 comments
Closed

example chat server in readme doesn't compile #9

Austaras opened this issue Oct 31, 2019 · 9 comments

Comments

@Austaras
Copy link

Compiler says 'cbIter' is not GC-safe as it accesses 'connections' which is a global using GC'ed memory . How to fix it?

@treeform
Copy link
Owner

treeform commented Nov 8, 2019

That should be a warning? It should still compile.

@Austaras
Copy link
Author

Austaras commented Nov 9, 2019

It's an error and no binary is generated.

@treeform
Copy link
Owner

What version of nim are you using?

@Austaras
Copy link
Author

Nim Compiler Version 1.0.0 [Linux: amd64]
Compiled at 2019-10-01
Copyright (c) 2006-2019 by Andreas Rumpf

git hash: bb9298ca3b9e6f3bd4af8bd6c66ee7932b9e450d

@skellock
Copy link

import ws, asyncdispatch, asynchttpserver

proc shrug() =
  var server = newAsyncHttpServer()
  # ... and the rest of your code

shrug()

¯\(ツ)

@treeform thank for writing this lib!

@Austaras
Copy link
Author

It only fails to compile when mutli thread is enabled

@treeform
Copy link
Owner

treeform commented Dec 4, 2019

Should I make a multi threaded version? I need to make it fail with threads.

@Austaras
Copy link
Author

Austaras commented Dec 4, 2019

please do!

@treeform
Copy link
Owner

treeform commented Dec 4, 2019

@treeform treeform closed this as completed Dec 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants