Posted 01 March 2015 - 07:14 PM
VERSION:ComputerCraft 1.73
DESCRIPTION:
When running this code, testAsync returns valid table with functions, while testSync returns empty table.
EXPECTED RESULT:
Identical values (table with three functions) returned from both methods
When returning from line 43, result is already empty map. Probably conversions look like that: (Java: ILuaObject) -> (Lua: table of functions) -> (Java: empty table) - functions are not converted.
Probably little bit obscure and I already found alternative solution (context.issueMainThreadTask(…), context.pullEvent("task_complete") and some extra object to hold results), but it would be nice to have this working out of box and not having to play with internal CC implementation details.
DESCRIPTION:
When running this code, testAsync returns valid table with functions, while testSync returns empty table.
EXPECTED RESULT:
Identical values (table with three functions) returned from both methods
When returning from line 43, result is already empty map. Probably conversions look like that: (Java: ILuaObject) -> (Lua: table of functions) -> (Java: empty table) - functions are not converted.
Probably little bit obscure and I already found alternative solution (context.issueMainThreadTask(…), context.pullEvent("task_complete") and some extra object to hold results), but it would be nice to have this working out of box and not having to play with internal CC implementation details.