Class AsyncRefreshableProperty

  • All Implemented Interfaces:
    kotlin.properties.ReadOnlyProperty

    
    public final class AsyncRefreshableProperty<T extends Object>
     implements ReadOnlyProperty<Any, T>
                        

    This is a Delegated property implementation for variable which have async get() get() will give stale value depends on how old depends on various refresh options refreshOnGet, refreshOnInt are available to configure when to fetch new value refreshLogic() - to be run on background thread of normalExecutor.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      T getValue(Object thisRef, KProperty<?> property)
      final Unit refresh()
      final Unit refreshSync()
      final Unit setValue(T value)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait