Create a gist now

Instantly share code, notes, and snippets.

@gokr /blocker.nim
Last active Oct 12, 2017

What would you like to do?
Seems to block for me on Ubuntu
import osproc, threadpool
setMinPoolSize(200)
setMaxPoolSize(200)
proc perform() =
echo "Starting"
discard execCmdEx("sleep 25")
echo "Done "
proc go() =
for i in 0..20:
spawn perform()
go()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment