A cornstarch slurry is a quick and easy way to thicken a compote. Add the slurry to the compote along with the other ingredients before cooking. This will allow to the slurry to slowly thicken the compote as it cooks.