Writes while electing new leader

Hi Guys,

I have been wondering what will happen to the writes while electing the new leader in a casual cluster while failover.

Although i don't know the exact time for electing new leader , i can say it take very less time. what happens if my application tries to write at the same time.