Would this thread loop continously

would this thread loop continously or i have to put a while condition
to force it to loop.

notifierThread=Thread.new do
ibScan= load ‘ScansNotifier.rb’
puts " ScansNotifier started "
sleep(60)
notifierThread.join
end

Junkone wrote:

would this thread loop continously or i have to put a while condition
to force it to loop.

notifierThread=Thread.new do
ibScan= load ‘ScansNotifier.rb’
puts " ScansNotifier started "
sleep(60)
notifierThread.join
end

You do need an explicit loop. It’s an easy one to forget, even after
years… :slight_smile:

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs