requestRefresh

abstract fun requestRefresh()

Requests that a new refresh of the resource take place. No validation is done on the object that is retrieved.

A refresh only takes place if all relevant timeout conditions are met.


abstract fun requestRefresh(isValid: (T) -> Boolean)

Requests that a new refresh of the resource take place. The resulting object is passed to the isValid predicate to determine whether or not this should be considered a successful retrieval.

A refresh only takes place if all relevant timeout conditions are met.

Parameters

isValid

Predicate to determine the resource validity. Return true if valid, else false.