Robert Klemme
9/10/2008 2:33:00 PM
2008/9/10 I=F1aki Baz Castillo <ibc@aliax.net>:
> 2008/9/10, Robert Klemme <shortcutter@googlemail.com>:
>> 2008/9/10 I=F1aki Baz Castillo <ibc@aliax.net>:
>>
>> > 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
--=20
use.inject do |as, often| as.you_can - without end