wait() is a java method of the Object class, and is used with the notify() method. It's part of java's synchronization system, and is definitely not like sleeping. Here are the javadocs for Object: http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html
Mark -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, August 22, 2005 2:48 PM To: CF-Talk Subject: RE: What does Wait() do? Hi, I had already tried executing it to find out, I get this error when I execute wait() with a numeric value as the argument: current thread not owner Thanks, Dave -----Original Message----- From: S. Isaac Dealey [mailto:[EMAIL PROTECTED] Sent: Monday, August 22, 2005 1:37 PM To: CF-Talk Subject: Re: What does Wait() do? > Anyone know of an undocumented function in CFMX 6.1 (or > higher) called Wait()? It's there, but I can't figure out what it's > for or what it does, nor can I find any documentation on it. > Any ideas? I would expect CreateObject("java","java.lang.Thread").sleep(x); Try this: <cfoutput> #getTickCount()# <cfset wait(1000)> #getTickCount()# </cfoutput> Granted, if it accepts an argument in seconds (instead of ms), then you'd be looking at a wait of a little over 16 minutes. s. isaac dealey 954.522.6080 new epoch : isn't it time for a change? add features without fixtures with the onTap open source framework http://www.fusiontap.com http://coldfusion.sys-con.com/author/4806Dealey.htm ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:216030 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54