Created
September 6, 2018 02:51
-
-
Save sourcevault/0df18b397417539ed30c505daba47928 to your computer and use it in GitHub Desktop.
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
copas = require 'copas' | |
copas.addthread -> | |
copas.sleep 1 | |
os.execute '<<blocking more than 1 second>>' | |
I = 0 | |
copas.addthread -> | |
while true | |
copas.sleep 0.1 | |
print "I -> #{I}" | |
I += 1 | |
copas.loop! | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@Tieske
output :
Is there a way to make
Copas
non-blocking ?