Hello,
I was looking into something like prologue or even a simpler library that could run in its own thread and serve HTTP/Websockets. Prologue seems to be exactly what I need, except that I couldn't make it work in a separate thread. Nim would complain, unless app.run() is called from the main thread.
I keep running into the GC safety compile-time error. Is there a way to e.g. move the entire prologue logic to a different thread?
Thanks, George.
If you know there are no threading problems, use this idiom:
{.cast(gcsafe).}:
<call here that the compiler complains about>