I need to do several actions at the same time in Jexl. In official guide I found annotation @parallel: https://commons.apache.org/proper/commons-jexl/reference/syntax.html But I didn't find any examples how to use it.
Can anyone provide some examples?
I thought it will work like this:
@parallel { a.someMethod() }
@parallel { b.someMethod() }
But seems like it's still working sequentially. Second example I've tried, still not working:
var loopFunction = function(title){
var i = 0;
logger:info("Starting "+title);
while(i<100) {
logger:info(title+"="+i);
utils:sleep(25);
i += 1;
}
logger:info("Ending "+title);
}
@parallel loopFunction('i');
@parallel loopFunction('j');