A variant of "bracket" that performs the final action only if there was an error.
A variant of "bracket" that performs the final action only if there was an error.
A variant of "bracket" where the return value of this computation is not needed.
A variant of "bracket" where the return value of this computation is not needed.
Like "bracket", but takes only a computation to run afterward.
Like "bracket", but takes only a computation to run afterward. Generalizes "finally".
Like "finally", but only performs the final action if there was an exception.
Like "finally", but only performs the final action if there was an exception.