From: "David S." Date: 2001-05-17T04:14:41+09:00 Subject: [ruby-talk:15309] Re: wait method? On Thu, May 17, 2001 at 03:40:05AM +0900, Wayne Blair wrote: > Is there a wait or sleep method built into ruby? The following is an > example of usage. > > require 'win32ole' > > ie = WIN32OLE.new > ie.visible=true > ie.gohome > # have to wait because web page must be > #fully loaded to get document > while ie.busy do > # would like to call wait(100) where 100 is milliseconds > # instead of doing the ie.busy check hundreds of times > end > doc = ie.document > How about something like thr = Thread.new {ie.gohome} thr.join doc = ie.document David S.