Which one is grammatically correct ?
I waited there until he had come.
I waited there until he came.
Or this case:
I must try going to bed earlier until I finished/finish/have finished the course. Which one is correct? Is there any rule?
What's the rule?