MCPcopy Create free account
hub / github.com/antlr/codebuff / clearWaiters

Method clearWaiters

output/java_guava/1.4.19/AbstractFuture.java:836–842  ·  view source on GitHub ↗

Clears the #waiters list and returns the most recently added value.

()

Source from the content-addressed store, hash-verified

834 /** Clears the {@link #waiters} list and returns the most recently added value. */
835
836 private Waiter clearWaiters() {
837 Waiter head;
838 do {
839 head = waiters;
840 } while (!ATOMIC_HELPER.casWaiters(this, head, Waiter.TOMBSTONE));
841 return head;
842 }
843
844 /** Clears the {@link #listeners} list and returns the most recently added value. */
845

Callers 1

completeMethod · 0.95

Calls 1

casWaitersMethod · 0.45

Tested by

no test coverage detected