ているあいだに

JLPT Level: N4
Meanings

while

during the time that ~

Usage

Vているあいだに

Explanation
This pattern is used to describe that something happens or changes while another ongoing action is happening. The main clause describes an event that occurs within the time span of the action expressed by the ている form. It often implies that the second event is somewhat unexpected or occurs as a consequence or interruption of the ongoing activity.
勉強しているあいだに、電話が鳴った。
べんきょうしているあいだに、でんわがなった。

While I was studying, the phone rang.

雨が降っているあいだに、窓を拭いた。
あめがふっているあいだに、まどをふいた。

During the rain, I wiped the windows.

出かけているあいだに、郵便が届いていた。
でかけているあいだに、ゆうびんがとどいていた。

While I was out, the mail arrived.