Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for Value (0.16 sec)

  1. android/guava/src/com/google/common/util/concurrent/AbstractFuture.java

       * acquire other locks, risking deadlocks.
       *
       * @param value the value to be used as the result
       * @return true if the attempt was accepted, completing the {@code Future}
       */
      @CanIgnoreReturnValue
      protected boolean set(@ParametricNullness V value) {
        Object valueToSet = value == null ? NULL : value;
        if (ATOMIC_HELPER.casValue(this, null, valueToSet)) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 21:17:24 GMT 2024
    - 63K bytes
    - Viewed (0)
  2. guava-gwt/src-super/com/google/common/util/concurrent/super/com/google/common/util/concurrent/AbstractFuture.java

        notifyAndClearListeners();
      }
    
      @CanIgnoreReturnValue
      protected boolean set(V value) {
        if (!state.permitsPublicUserToTransitionTo(State.VALUE)) {
          return false;
        }
    
        forceSet(value);
        return true;
      }
    
      private void forceSet(V value) {
        this.value = value;
        this.state = State.VALUE;
        notifyAndClearListeners();
      }
    
      @CanIgnoreReturnValue
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jan 22 19:37:41 GMT 2024
    - 12.3K bytes
    - Viewed (0)
Back to top