Class Thread
Object
|
+--Thread
- class
Thread
A Thread can be either a generic java.lang.Thread
object or an internal Helma request. In both cases the code
will be evaluated "in background", ie. apart from the current
thread.
Defined in Thread.js
|
Constructor Summary |
Thread
(<Object> handler, <String> method )
Creates a new Thread instance.
|
|
Method Summary |
Boolean
|
isRunning()
Returns the current state of the thread.
|
void
|
start()
Starts the thread.
|
void
|
stop()
Stops the thread.
|
Thread
Thread(<Object> handler, <String> method )
Creates a new Thread instance.
Parameters:
handler - Either a function or an object. If an object is assigned it will be used as context for the (then mandatory) second argument.
method - Defines the name of the method that should be executed. All further given arguments will be used in the method call.
isRunning
Boolean isRunning()
Returns the current state of the thread.
Returns:
True if the thread is alive, false otherwise.
start
void start()
stop
void stop()
Documentation generated by
JSDoc on Sun Mar 4 00:51:24 2007