Functions -
runtime
getCallStack | Retrieves the Call Stack |
getErrorCallStackFrame | Retrieves the Call Stack Frame for a particular error |
getInvocationContext | Creates a InvocationContext instance. |
getProperty | Returns the value associated with the specified property name. |
sleep | Halts the current worker for a predefined amount of time. |
timeout | Gives a timeout to the current worker for a predefined amount of time. |
Retrieves the Call Stack
-
Return Type
(CallStackElement[]) Array of
CallStackElement
elements
Retrieves the Call Stack Frame for a particular error
Parameters
- e error
-
error
instance
-
Return Type
(CallStackElement[]) Array of
CallStackElement
elements
Creates a InvocationContext instance.
-
Return Type
(InvocationContext) InvocationContext instance
Returns the value associated with the specified property name.
Parameters
- name string
-
Name of the property
-
Return Type
(string) Value of the property if the property exists, an empty string otherwise
Halts the current worker for a predefined amount of time.
Parameters
- millis int
-
Amount of time to sleep in milliseconds