I’m writing a Ruby script and want behaviour like this:
every 15 seconds do
callback
end
How would I do this?
A quick search didn’t show many libraries; Should I be using threads? I want this pretty basic since my Ruby script is going to be basic.
You could always call
sleep: