User Tools

Site Tools


en:code:core:execution

This is an old revision of the document!


Execution

The Execution object provides functions to manipulate the current execution.

Functions

pause

Pauses the script execution.

Syntax

Execution.pause(duration);

Arguments

  1. duration - (int) pause duration in milliseconds

Returns

  • (Execution) this Execution

Example

Execution.pause(5000); //Pauses the execution for five seconds

See also

Notes

The effective pause duration may be different (+/- 50 ms) than the given argument due to operating system precision.

sleep

Alias of the pause function.

stop

Stops the current execution.

Syntax

Execution.stop();

Returns

  • (Execution) this Execution

Global Attributes

filename

The filename of the current script or code file. (string)

en/code/core/execution.1464430966.txt.gz · Last modified: (external edit)