From: Robert Klemme Date: 2008-09-10T23:32:59+09:00 Subject: Re: Difference between "sleep()" and "Thread.stop"? 2008/9/10 Iņaki Baz Castillo : > 2008/9/10, Robert Klemme : >> 2008/9/10 Iņaki Baz Castillo : >> >> > Hi, is there any difference between doing: >> > >> > sleep >> > >> > and: >> > >> > Thread.stop >> >> #sleep resumes automatically after a given time, #stop does not. > > Object#sleep doesn't resume if there is not parameter: > sleep # This sleeps forever I wasn't aware of that. Learn something new every day. Thanks! > So, which difference exists between Object#sleep (with no parameter) > and Thread#stop ? Well, #stop does not accept a time parameter, does it? ;-) Cheers robert -- use.inject do |as, often| as.you_can - without end