Last active
October 12, 2017 09:37
-
-
Save gokr/07af61db91129ff7c664c68364948ade to your computer and use it in GitHub Desktop.
Seems to block for me on Ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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