All Downloads are FREE. Search and download functionalities are using the official Maven repository.

reactor.util.scala.retry.SRetry.scala Maven / Gradle / Ivy

Go to download

A scala extensions for Project Reactor Flux and Mono so that the code can be fluently used in Scala

The newest version!
package reactor.util.scala.retry

import org.reactivestreams.Publisher
import reactor.core.scala.publisher.SFlux
import reactor.util.retry.Retry
import reactor.util.retry.Retry.RetrySignal

object SRetry {
  /**
    * A wrapper around [[Function1]] to provide [[Retry]] by using lambda expressions.
    *
    * @param function the { @link Function} representing the desired { @link Retry} strategy as a lambda
    * @return the { @link Retry} strategy adapted from the { @link Function}
    */
  final def from(function: SFlux[RetrySignal] => Publisher[_]): Retry = Retry.from(function)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy