You get your cash as soon as you close. However, although it's called an all-cash offer, you don't get a bag of money.
You usually have two options on how to get paid:
Wire transfer, which usually appears in your account within 24-48 hours of closing, or
Paper check, which you have to deposit and wait for your bank to add the funds to your account, which may take up to 7 business days.