He arrived just as/when I was leaving. Can we use both as and when in this sentence, with no difference in meaning? Thank you in advance.