StreamingPrefetchingSupplier

A PrefetchingSupplier trait that is fed from a stream of updates, not a batch job.

Type parameters:
T

the type of the pre-fetched value

Value parameters:
lastOkUpdate

holds the last time the value was updated successfully

prefetchedValueRef

the Ref pointing to the currently held pre-fetched value

streamConsumptionFiber

the fiber that consumes from the stream

class Object
trait Matchable
class Any

Value members

Concrete methods

def lastSuccessfulUpdate: IO[Nothing, Instant]
Returns:

the elapsed duration since the last successful update

def updateInterval: Duration
def updatesStream: ZStream[Any, Nothing, T]

Concrete fields

val get: IO[Nothing, T]
val streamConsumptionFiber: Fiber[Throwable, Any]