Dictionary / Vocabulary / 否や
いなや
as soon as; no sooner than; one way or another; objection
その警官の姿を見かけるや否や、彼は逃げ出した。
The instant he saw the policeman, he ran away.