Skip to main content
Function
Applies onSuccess or onFailure depending on the result variant.