u can come back shortly after you resigned but only on a visit visa and if you ever find a new job the company cannot hire you because they cannot apply a work visa for you.unless of course you have an NOC...