They harden in the time indicated on the bag. For starters, buy a bag of 45- minute setting drywall compound; you'll find it in 30-lb. bags (and sometimes smaller boxes), with names like Durabond ...
You can buy a joint compound that sets up in 45 minutes and one that sets up in ... Make a Dent for the Patching Compound ...