CallAsync (open)

Asynchronously invoke a function in another VM

Syntax

LOADLIB "mod::system/lib/tasks.whlib";

ASYNC FUNCTION CallAsync(STRING func, VARIANT ARRAY args, RECORD options)

Parameters

STRING func

Reference to the function (in the form 'resourcename#functionname'). HareScipt and JavaScript functions are both supported.

VARIANT ARRAY args

Arguments

RECORD options

Options

BOOLEAN wrapobjects

Wrap objects in a JSONObject and arrays in a JSONArray (translations are ignored) (only for JavaScript calls)

Return value

Return value of the function