Everything worked out well and it was the best decision I ever made.
Upon saying that, I knew that there were a lot of jobs available, and I was also willing to do any kind of job, not just software engineering. If push came to shove, I was willing to go back to working in construction or hospitality.
I also had a backup plan if all else failed, which was to fly back home and stay with my parents while I sorted my life out.
My advice would be to not quit your job without a plan and a plan B.