Hi, and welcome.
The receipt of a trade-in valuation is pretty quick, from memory. Usually next day. Unsure about cancelling trade-in but the valuation is only "good" for 60 days so may expire before you get your Tesla.
Of course, I don't know your circumstances, but make sure you check prices...