-
-
Save xcobar/55589946082f7036bd3dbd015ccf1a4d 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
thread = Thread.new do | |
loop do | |
# Do something | |
sleep rand(82_800..93_600 | |
end | |
end | |
thread.join |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment