I built my startup while keeping my job until it was impossible to sustain. I tried really hard to make it work as long as possible.
At the time I quit my job the startup was profitable and growing really fast. A few months later we started negotiating an acquisition and closed the deal after working less than a year on it full-time.