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}
        <do something else here>
        thr.join
        doc = ie.document

David S.