Functions - runtime

getCallStack

Retrieves the Call Stack

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.

getCallStack

()

returns CallStackElement[]

Retrieves the Call Stack

getInvocationContext

()

returns InvocationContext

Creates a InvocationContext instance.

getProperty

(string name)

returns string

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

sleep

Halts the current worker for a predefined amount of time.

Parameters

  • millis int
  • Amount of time to sleep in milliseconds

timeout

(int millis)

returns future

Gives a timeout to the current worker for a predefined amount of time.

Parameters

  • millis int
  • Amount of time needed for the timeout in milliseconds

  • Return Type

    (future)
  • Future to be invoked after the timeout