When and while with past continuous tense

I was talking to my friend when my cell phone died.

Is it okay to say that below:
While I was talking to my friend, my cell phone died.

Thank you!!!

1 Like

Yes, that’s fine.

1 Like

Yes. The ‘when’ in the original sentence refers to the single moment of the phone dying. The ‘while’ in your sentence refers to the duration of the phone call, so these two sentences illustrate the (subtle) difference between when and while…

1 Like