JLPT N2 Grammar
か ~ ないかのうちに
Meaning: just as, right after, as soon as
Formation
Verb dictionary form + か + +Verb ない form + ないかのうちに
Verb た form + か + +Verb ない form + ないかのうちに
Examples
母が叱るか叱らないかのうちに、弟は自分の部屋に入った。
ははが しかるか しからないかのうちに、おとうとは じぶんのへやに はいった。
My brother entered his room right after his mother scolded him.
食事が終わるか終わらないかのうちに、地震が起きた。
しょくじが おわるか おわらないかのうちに、じしんがおきた。
An earthquake broke out just as I finished eating.
映画が終わるか終わらないかのうちに、多くの客が席を立った。
えいがが おわるか おわらないかのうちに、おおくのきゃくが せきをたった。
Many of the audience stood up as soon as the movie was over.
薪に火を付けるか付けないかのうちに、雨が降り出した。
まきに ひをつけるか つけないかのうちに、あめがふりだした。
It began to rain just as I lighted the firewood.
Note
This phrase is used to describe what has already happened, not to the future.