The emergent behavior from devs now is going to be overlapping employment between jobs to safeguard themselves from this kind of shenanigans.
Your first day on the new job should be the day you put in your two weeks notice at your old job. Ramp down and ramp up accordingly.
This advice only applies to USA though.