Class CoroutineExtensionsKt
-
- All Implemented Interfaces:
public final class CoroutineExtensionsKt
-
-
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. -
-
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.
-
-
-
-