〜や否や
JLPT N1 Immediacy and timingas soon as; the instant
Automated checks pass · no human review yetWhy?Help verify
や否や means that the instant one event occurred, another immediately followed. Attach it to a verb's dictionary form. It is formal and literary, common in writing, and the second clause is in the past.
Examples
をやや、がてた。 Doa o akeru ya ina ya, neko ga tobidashite kita.
The instant I opened the door, the cat darted out.
がやや、はにた。 Sono shirase ga tsutawaru ya ina ya, machi wa oosawagi ni natta.
As soon as the news spread, the town was in an uproar.