Nowadays Air Canada has been holding up planes for passengers who have made it to customs and are stuck in line (basically as long as your boarding pass gets scanned right as you are entering preclearance area). Typically every flight has been delayed 2-3 hours leaving to the US, so there's always a good chance you'll make it.