Package net.fabricmc.loom.util
Class AsyncCache<T>
java.lang.Object
net.fabricmc.loom.util.AsyncCache<T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBlocking(Object cacheKey, Supplier<T> supplier) static <T> Tjoin(CompletableFuture<T> future) static <T> List<T> joinList(Collection<CompletableFuture<List<T>>> futures) static <K,V> Map <K, V> joinMap(Map<K, CompletableFuture<V>> futures)
-
Constructor Details
-
AsyncCache
public AsyncCache()
-
-
Method Details
-
get
-
getBlocking
-
joinList
-
joinMap
-
join
-