CountedCompleter.compareAndSetPendingCount

Sets (atomically) the pending count to the given count only if it currently holds the given expected value.

@param expected the expected value @param count the new value @return {@code true} if successful

class CountedCompleter(T)
final
bool
compareAndSetPendingCount
(,
int count
)

Meta