Packages

trait Retrying[T] extends AnyRef

Supertrait for Retrying typeclasses, which are used to implement and determine the behavior of Eventually methods.

Currently, implementations for anything type T and Future[T] is provided.

Source
Retrying.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Retrying
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def retry(timeout: Span, interval: Span, pos: Position)(fun: => T): T

    Retry the passed in function until the given timeout is reached, with the given interval between attempts.

    Retry the passed in function until the given timeout is reached, with the given interval between attempts.

    timeout

    the timespan to try before giving up

    interval

    interval between call attempts

    pos

    the position of the call site

    fun

    function to be called

    returns

    the value returned from the passed in fun.