contestada

Which verb tense is for an ongoing past action that was interrupted by another action in the past, emphasizing that the ongoing action is over?
Example: John had been washing his car all morning, but quit when the rain came.