Retrying

org.scalatest.enablers.Retrying
See theRetrying companion object
trait Retrying[T]

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.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

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.

Value parameters

fun

function to be called

interval

interval between call attempts

pos

the position of the call site

timeout

the timespan to try before giving up

Attributes

Returns

the value returned from the passed in fun.