They're both fine. My choice would depend on the time of day and the company. I got there just as the train was pulling out.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.
AvangiI got there just as the train was pulling out.
alc24Could you replace "just as" with "right when"Yes, you certainly could.
I got there right when the train was pulling out?
alc24I like the way your pants go with your shoes.The "pants" line is correct and natural.
"As I read/was reading the thread"