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

Method cas

future-java/src/main/java/io/trane/future/Promise.java:199–201  ·  view source on GitHub ↗
(final Object oldState, final Object newState)

Source from the content-addressed store, hash-verified

197 }
198
199 private final boolean cas(final Object oldState, final Object newState) {
200 return Unsafe.compareAndSwapObject(this, STATE_OFFSET, oldState, newState);
201 }
202
203 /**
204 * Becomes another future. This and result become the same: both are completed

Callers 5

trySetStateMethod · 0.95
safeFlushMethod · 0.95
linkMethod · 0.95
continuationMethod · 0.95
compressMethod · 0.95

Calls 1

compareAndSwapObjectMethod · 0.95

Tested by

no test coverage detected