MCPcopy Create free account
hub / github.com/traneio/future / restore

Method restore

future-java/src/main/java/io/trane/future/Local.java:110–113  ·  view source on GitHub ↗
(final Optional<?>[] saved)

Source from the content-addressed store, hash-verified

108 }
109
110 protected static final void restore(final Optional<?>[] saved) {
111 if (threadLocal != null)
112 threadLocal.set(saved);
113 }
114
115 private static final synchronized int newPosition() {
116 if (threadLocal == null)

Callers 2

saveAndRestoreMethod · 0.95
becomeIfEmptyMethod · 0.95

Calls 1

setMethod · 0.80

Tested by 1

saveAndRestoreMethod · 0.76