when a truck is ascending an incline and the engine revs climb but the tires have traction and not rotating, where does all that twist from the engine go? How long does that last until something goes boom?

when a truck is ascending an incline and the engine revs climb but the tires have traction and not rotating, where does all that twist from the engine go? How long does that last until something goes boom?