か-ないかのうちに
文法の解説は英語です。
用法
Used to express something happens immedeatly after. 'just as; right after; as soon as ~.'
例文
授業が終わるか終わらないかのうちに彼は教室を出た
He left the classrom as soon as class ended
彼が電車が止まるか止まらないかのうちにホームに飛び降りた
He jumped onto the platform just as the train stopped