Fields and methods of the jala.AsyncRequest class.
Creates a new AsyncRequest instance.
parameters
Object | obj | Object in whose context the method should be called |
String | funcName | Name of the function to call |
Array | args | Array containing the arguments that should be passed to the function (optional). This option is deprecated, instead pass the arguments directly to the {@link #run} method. |
methods
- setTimeout(seconds)
- setDelay(millis)
- run()
- evaluate()
- isAlive()
Methods
Sets the timeout of this asynchronous request.
parameters
Number | seconds | Thread-timeout. |
Defines the delay to wait before evaluating this asynchronous request.
parameters
Number | millis | Milliseconds to wait |
Starts this asynchronous request. Any arguments passed to
this method will be passed to the method executed by
this AsyncRequest instance.
Starts this asynchronous request.
Returns true if the underlying thread is alive
returns
True if the underlying thread is alive, false otherwise. |