Can we get more information on callFunc? It's use is incorrectly documented. It says you need to pass in an args object, with the fields. that is not true. I have callfunc uses throughout my app that pass in strings/nodes, etc
ie.. callfunc("sayhello", hello)
function SayHello(message as string)
return "hello " + message
end function
that works fine.
Also - no information at all about getting return values from callfunc - you can do this
myValue = aNode.callFunc("SayHello", "George")
? myValue >> "hello George"
And what's the cost of that? what happens with rendesvous? marshalling? What thread? What scope. Performance cost?
I reckon callfunc could be far more useful, and lead to some nice patterns; but it needs more documentation!
George Cook
https://georgejecook.github.io/
https://linkedin.com/in/georgejecook/
Roku developers slack group (https://join.slack.com/t/rokudevelopers/shared_invite/zt-4vw7rg6v-NH46oY7hTktpRIBM_zGvwA) : georgejecook
Contact me on roku developer slack group, or via pm to discuss consultancy/work opportunities/rooibos unit testing framework