If you want to sleep for, say, 5 seconds in CF then you can do something
like this.

<cfset lockname = CreateUUID()>
<cflock name="#lockname#" type="readonly" timeout="0">
        <cftry>
                <cflock name="#lockname#" type="exclusive" timeout="5">
                </cflock>
                <cfcatch type="lock">
                </cfcatch>
        </cftry>
</cflock>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to