Hi, i need to execute meterService.incrementExitRequests(“online”) always, no matter if there is an error. Is there anything in arrow that works like a finally clause? Not sure if it is the correct approach.
Copy code
either<ReservationError, Unit> {
//do some logic
}.mapLeft {
meterService.incrementExitError("online")
it
}.map {
meterService.incrementExitRequests("online")
}