Try doco for Threads doco and threadpool module and threads module and locks module
Also just search the forum for questions which will have some example code.
There is also an iterator: || which is an omp parallel pragma thingy
gokr , google can't say much , nim is too young to know-it-all by google. asyncdispatch is marked as Low Level module , i am looking a bit higher level like asycnio by python , or coroutines of tornadoweb / or go routines.
And i felt trolled by lmgtfy on a very young language.
Sorry if that came out "wrong", I just felt the question sounded like you hadn't even looked. I tested google actually, just to see what I found, and I found plenty.
That said, I didn't mean to be unfriendly, I have helped lots of newbies and I am a newbie myself. Yes, the async stuff is exactly this - single threaded asynchronous networking etc, just like NodeJS. AFAIK dom96 wrote most of it, but I don't think there is a good article about it. However I do think this forum is running on it all, and that code is of course available (correct me if I am wrong).
Personally I feel too much focus these days is on async, Nim also has a nice threadpool and other things. For an example of a threaded server, check my article testing it:
http://goran.krampe.se/2014/10/25/nim-socketserver/
...and perhaps my other articles can be of interest:
http://goran.krampe.se/category/nim/
Happy hacking!
gokr, it really did come out "wrong". In fact, I'm not sure why you would use lmgtfy if you were trying to be helpful.
Anyway, go on. What did you find?
I apologized, but at the same time, I couldn't really believe the async stuff in Nim could go undetected by some google mojo? Perhaps I am just tired of the Internet at large - so many people blurt out questions without even trying to research a bit first, like say searching for "async" here:
http://nim-lang.org/docs/lib.html
...or say here:
But again, it was meant to be "tongue in cheek" but I realized later it didn't really "say so".