The ESR of the capacitor also comes into play, which limits the current flow out of the cap to some extent.