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
- Alphabetic
- By Inheritance
- Retrying
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- 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
.