Assign method pointer to be called by multiple threads to compute a while loop.
Returns: TWhileLoopEvent