mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-10-23 16:44:06 +00:00
Activate decree
This commit is contained in:
1 parent
93f2c83c0e
commit
faf5bcb32b
78 files changed
+36
-6697
No files matched your search
@@ -61,6 +61,17 @@ public class AtomicCache<T> {
|
||||
});
|
||||
}
|
||||
|
||||
public T aquireNastyPrint(NastySupplier<T> t) {
|
||||
return aquire(() -> {
|
||||
try {
|
||||
return t.get();
|
||||
} catch (Throwable e) {
|
||||
e.printStackTrace();
|
||||
return null;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public T aquire(Supplier<T> t) {
|
||||
if (this.t.get() != null) {
|
||||
return this.t.get();
|
||||
|
||||
Reference in new issue
Block a user