Question in the State of NY.

I have a petition I-130 pending and I am current out of status in the US fr more than 8 years. and I was told that if I leave the country before adjusting my status, I will suffer a 10-year bar and I will not be able to enter the US for 10 years since I have been in the US for more than 8 years out of status. Now, I had my Canadian application approved and I will soon be moving to Canada as a Canadian Permanent Resident and live there. If I decide to visit the US, is there a waiver I can apply to enter as a visitor to visit my friend here and family? What can be done?

Thank you.