Skip to content

Instantly share code, notes, and snippets.

@xcobar

xcobar/repeat.rb Secret

Created September 7, 2020 22:34
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 xcobar/55589946082f7036bd3dbd015ccf1a4d to your computer and use it in GitHub Desktop.
Save xcobar/55589946082f7036bd3dbd015ccf1a4d to your computer and use it in GitHub Desktop.
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