Millis() not working

the doc for runToPosition()states

Moves the motor (with acceleration/deceleration) to the target position and blocks until it is at position. Dont use this in event loops, since it blocks

distanceToGo() will be 0 at the end...