Skip to content

Instantly share code, notes, and snippets.

@gokr
Last active October 12, 2017 09:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gokr/07af61db91129ff7c664c68364948ade to your computer and use it in GitHub Desktop.
Save gokr/07af61db91129ff7c664c68364948ade to your computer and use it in GitHub Desktop.
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