Class CoroutineExtensionsKt

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static <K extends Any, V extends Any> Deferred<V> getDeferred(Cache<K, V> $self, K key, CoroutineScope scope) Asynchronously gets the value for the given key as a Deferred.
      final static <K extends Any, V extends Any> Deferred<Unit> putDeferred(Cache<K, V> $self, K key, V value, CoroutineScope scope) Asynchronously puts a value for the given key as a Deferred.
      final static <K extends Any, V extends Any> Deferred<V> removeDeferred(Cache<K, V> $self, K key, CoroutineScope scope) Asynchronously removes the value for the given key as a Deferred.
      final static <K extends Any, V extends Any> Deferred<Unit> clearDeferred(Cache<K, V> $self, CoroutineScope scope) Asynchronously clears the cache as a Deferred.
      final static <K extends Any, V extends Any> V getOrPutAsync(Cache<K, V> $self, K key, SuspendFunction1<K, V> compute) Suspending version of getOrPut using the cache's async loader if available.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • getDeferred

         final static <K extends Any, V extends Any> Deferred<V> getDeferred(Cache<K, V> $self, K key, CoroutineScope scope)

        Asynchronously gets the value for the given key as a Deferred.

      • putDeferred

         final static <K extends Any, V extends Any> Deferred<Unit> putDeferred(Cache<K, V> $self, K key, V value, CoroutineScope scope)

        Asynchronously puts a value for the given key as a Deferred.

      • removeDeferred

         final static <K extends Any, V extends Any> Deferred<V> removeDeferred(Cache<K, V> $self, K key, CoroutineScope scope)

        Asynchronously removes the value for the given key as a Deferred.

      • clearDeferred

         final static <K extends Any, V extends Any> Deferred<Unit> clearDeferred(Cache<K, V> $self, CoroutineScope scope)

        Asynchronously clears the cache as a Deferred.

      • getOrPutAsync

         final static <K extends Any, V extends Any> V getOrPutAsync(Cache<K, V> $self, K key, SuspendFunction1<K, V> compute)

        Suspending version of getOrPut using the cache's async loader if available.