Hello, I am new to Arrow library. Have a question on `arrow.fx.coroutines.Schedule` . Is there a wa...
s
Hello, I am new to Arrow library. Have a question on
arrow.fx.coroutines.Schedule
. Is there a way to get the number of attempt in the Either.catch
Copy code
Either.catch{
	retry(Schedule.exponential(250.milliseconds)) {
		evalOn(IOPool) {
			//do something
	  		incrementMetricSuccess(attempt)   -------> want to increment metric with the attempt it got successful
		}
	}
}.mapLeft {
	incrementMetricSuccess(attempt)    -------> want to increment metric with the attempt to fail
}
k
#C5UPMM0A0
👍 2