tru dat.  I was wondering if anyone would point that out...

Since I don't think CF has a Yield() method, you'd have to invoke the OS native method 
for that through a CFX or COM object where I said "//why do anything? =-)".

I didn't say it was a *good* implementation, merely *an* implementation... ;-)

--IronFury

On Thu, 21 February 2002, "Billy Cravens" wrote:

> 
> You don't want to lock yourself in a loop - this will probably peak the
> CPU at 100% while you're "waiting"
> 
> ---
> Billy Cravens
>  
> 
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On
> Behalf Of [EMAIL PROTECTED]
> Sent: Thursday, February 21, 2002 8:46 AM
> To: [EMAIL PROTECTED]
> Subject: Re: CF and 'time'
> 
> Heya Palyne!  Are you talking about synchonous waiting, e.g. the app
> performs some action, waits a specified number of time intervals, then
> performs the next action?  If so, this would be pretty simple to
> implement inline code using CF's current date/time functions and
> looping.  You could make an include file out of something like:
> 
> NOTE: this is *NOT* tested...  FOR CONCEPT ONLY!!!
> 
> <cfparam name="wait_datepart" default="s">
> <cfparam name="wait_interval" default="0">
> <cfscript>
> wait_newdate = DateAdd(wait_datepart, wait_interval, Now());
> while (Now() LT wait_newdate) {
>     //why do anything?  =-)
> }
> </cfscript>
> 
> You would set the values for wait_datepart and wait_interval just before
> including the file.
> 
> Any particular reason you'd like to do this?  :-\
> 
> --IronFury
> 
> 
> On Wed, 20 February 2002, "Palyne Gaenir" wrote:
> 
> >
> > Do you suppose CF is ever going to come up with something that
> > lets time in execution be manipulated?  E.g., cfwait. :-)  I have a
> > utility I've wanted to build for about 10 years, I figured I'll make
> it in
> > VB 'someday', but I could do it in CF right now using cffile if only
> it
> > had such a capability.
> > Regards,
> > Palyne
> >
> >
> >
> ------------------------------------------------------------------------
> -
> > This email server is running an evaluation copy of the MailShield
> anti-
> > spam software. Please contact your email administrator if you have any
> > questions about this message. MailShield product info:
> www.mailshield.com
> >
> > -----------------------------------------------
> > To post, send email to [EMAIL PROTECTED]
> > To subscribe / unsubscribe: http://www.dfwcfug.org
> 
> 
> 
> ------------------------------------------------------------------------
> -
> This email server is running an evaluation copy of the MailShield anti-
> spam software. Please contact your email administrator if you have any
> questions about this message. MailShield product info:
> www.mailshield.com
> 
> -----------------------------------------------
> To post, send email to [EMAIL PROTECTED]
> To subscribe / unsubscribe: http://www.dfwcfug.org
> 
> -------------------------------------------------------------------------
> This email server is running an evaluation copy of the MailShield anti-
> spam software. Please contact your email administrator if you have any
> questions about this message. MailShield product info: www.mailshield.com
> 
> -----------------------------------------------
> To post, send email to [EMAIL PROTECTED]
> To subscribe / unsubscribe: http://www.dfwcfug.org



-------------------------------------------------------------------------
This email server is running an evaluation copy of the MailShield anti-
spam software. Please contact your email administrator if you have any
questions about this message. MailShield product info: www.mailshield.com

-----------------------------------------------
To post, send email to [EMAIL PROTECTED]
To subscribe / unsubscribe: http://www.dfwcfug.org

Reply via email to