Joshua 8:26 (ESV)

26 But Joshua did not draw back his hand with which he stretched out the javelin until he had devoted all the inhabitants of Ai to destruction.

Joshua continues holding out the javelin for the entire battle until all the enemy has been destroyed.