Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 164 for COMPLETED (0.05 seconds)

  1. guava-tests/test/com/google/common/util/concurrent/AbstractFutureBenchmarks.java

          }
    
          /** Transition to the COMPLETED state and set the value. */
          boolean set(@Nullable V v) {
            return complete(v, null, COMPLETED);
          }
    
          /** Transition to the COMPLETED state and set the exception. */
          boolean setException(Throwable t) {
            return complete(null, t, COMPLETED);
          }
    
          /** Transition to the CANCELLED or INTERRUPTED state. */
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Mar 07 02:20:33 GMT 2026
    - 13.8K bytes
    - Click Count (0)
  2. samples/guide/src/main/java/okhttp3/recipes/kt/UploadProgress.kt

                if (!completed) {
                  completed = true
                  progressListener.update(totalBytesWritten, contentLength(), completed)
                }
              }
            }
    
          val bufferedSink = forwardingSink.buffer()
          delegate.writeTo(bufferedSink)
          bufferedSink.flush()
        }
      }
    
      fun interface ProgressListener {
        fun update(
          bytesWritten: Long,
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sat Aug 30 17:01:12 GMT 2025
    - 3.8K bytes
    - Click Count (0)
  3. src/main/java/jcifs/internal/smb2/rdma/RdmaWorkRequest.java

            return memoryRegion;
        }
    
        /**
         * Check if request is completed
         *
         * @return true if completed, false otherwise
         */
        public boolean isCompleted() {
            return completed;
        }
    
        /**
         * Mark request as completed
         */
        public void markCompleted() {
            this.completed = true;
        }
    
        /**
         * Mark request as failed with error
         *
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 24 00:12:28 GMT 2025
    - 3.2K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureBenchmarks.java

          }
    
          /** Transition to the COMPLETED state and set the value. */
          boolean set(@Nullable V v) {
            return complete(v, null, COMPLETED);
          }
    
          /** Transition to the COMPLETED state and set the exception. */
          boolean setException(Throwable t) {
            return complete(null, t, COMPLETED);
          }
    
          /** Transition to the CANCELLED or INTERRUPTED state. */
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Mar 07 02:20:33 GMT 2026
    - 13.8K bytes
    - Click Count (0)
  5. cmd/bucket-replication-utils.go

    	if len(ri.Targets) == 0 {
    		return replication.StatusType("")
    	}
    	completed := 0
    	for _, v := range ri.Targets {
    		switch v.ReplicationStatus {
    		case replication.Failed:
    			return replication.Failed
    		case replication.Completed:
    			completed++
    		}
    	}
    	if completed == len(ri.Targets) {
    		return replication.Completed
    	}
    	return replication.Pending
    }
    
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 26.1K bytes
    - Click Count (0)
  6. guava-tests/test/com/google/common/util/concurrent/ThreadFactoryBuilderTest.java

    @J2ktIncompatible
    public class ThreadFactoryBuilderTest extends TestCase {
      private final Runnable monitoredRunnable = () -> completed = true;
    
      private static final UncaughtExceptionHandler UNCAUGHT_EXCEPTION_HANDLER =
          (thread, throwable) -> {};
    
      private ThreadFactoryBuilder builder;
      private volatile boolean completed = false;
    
      @Override
      public void setUp() {
        builder = new ThreadFactoryBuilder();
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 7.8K bytes
    - Click Count (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/ThreadFactoryBuilderTest.java

    @J2ktIncompatible
    public class ThreadFactoryBuilderTest extends TestCase {
      private final Runnable monitoredRunnable = () -> completed = true;
    
      private static final UncaughtExceptionHandler UNCAUGHT_EXCEPTION_HANDLER =
          (thread, throwable) -> {};
    
      private ThreadFactoryBuilder builder;
      private volatile boolean completed = false;
    
      @Override
      public void setUp() {
        builder = new ThreadFactoryBuilder();
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 7.8K bytes
    - Click Count (0)
  8. guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java

        final Completion completed;
    
        AbstractTimedLatch(long countdownInMillis) {
          this.completed = new Completion(countdownInMillis);
        }
    
        /** Awaits the latch and asserts that operation completed in the expected timeframe. */
        final void awaitSuccessfully() {
          awaitLatchUninterruptibly();
          completed.assertCompletionExpected();
          assertEquals(0, getCount());
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 38.1K bytes
    - Click Count (0)
  9. tests/test_dependency_contextmanager.py

        state["/async"] = "asyncgen started"
        yield state["/async"]
        state["/async"] = "asyncgen completed"
    
    
    def generator_state(state: dict[str, str] = Depends(get_state)):
        state["/sync"] = "generator started"
        yield state["/sync"]
        state["/sync"] = "generator completed"
    
    
    async def asyncgen_state_try(state: dict[str, str] = Depends(get_state)):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 11.5K bytes
    - Click Count (0)
  10. samples/guide/src/main/java/okhttp3/recipes/UploadProgress.java

              super.close();
              if (!completed) {
                completed = true;
                progressListener.update(totalBytesWritten, contentLength(), completed);
              }
            }
          };
        }
      }
    
      interface ProgressListener {
        void update(long bytesWritten, long contentLength, boolean done);
      }
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sat Aug 30 17:01:12 GMT 2025
    - 4.2K bytes
    - Click Count (1)
Back to Top