Ellié Computing Home Page
My Shopping Cart

Your shopping cart is empty

Display Cart

Call us at +1 586 62 ELLIE / +1 586 62 35543 Office Opened
sales@elliecomputing.com - Contact us


System.Threading.Thread object

 

 

Prototype for System.Threading.Thread objects

Syntax

 You cannot yet create System.Threading.Thread objects by yourself, their is one such object created for you automatically in each thread of work.

Parameters

 none.

Property Of

System.Threading namespace.

Implemented In

ECMerge 2.2.111

Description

This object let you manipulate an execution thread. Currently, this is limited to make it wait for a certain amount of time.

Methods

sleep

Examples

none.

See Also 

 

Method sleep

Syntax

 function sleep (time_to_wait_millisec)

Parameters

time_to_wait_millisec. UInt32. Time to wait in milliseconds

Method Of

System.Threading.Thread

Implemented In

ECMerge 2.2.111

Description

Waits during the amount of time specified.

In graphical mode, the standard cancellation box is displayed as it would during any lengthy process, it lets the user break the execution at any time (such cancellation cannot be cacthed by 'try - catch' blocks).
Although the time to wait is expressed in milliseconds some operating systems are not able to give that resolution of time, for example, waiting for 2 milliseconds may well wait for 10. Generally you can expect a resolution of time below the second.

Examples

Example 1.

This example makes the script wait for 2 seconds:

System.Threading.Thread.sleep (2000)