In RenderScript document, it says rsForEach is a synchronous function.
RenderScript
rsForEach
This is a synchronous function. A call to this function only