- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 4,225 for Done (0.02 sec)
-
samples/guide/src/main/java/okhttp3/recipes/Progress.java
.build(); final ProgressListener progressListener = new ProgressListener() { boolean firstUpdate = true; @Override public void update(long bytesRead, long contentLength, boolean done) { if (done) { System.out.println("completed"); } else { if (firstUpdate) { firstUpdate = false; if (contentLength == -1) {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Jan 12 03:31:36 UTC 2019 - 3.9K bytes - Viewed (0) -
src/main/java/org/codelibs/curl/io/ContentOutputStream.java
protected static final String SUFFIX = ".tmp"; protected boolean done = false; public ContentOutputStream(final int threshold, final File tmpDir) { super(threshold, PREFIX, SUFFIX, tmpDir); } @Override public File getFile() { done = true; return super.getFile(); } @Override public void close() throws IOException {
Registered: Thu Oct 31 02:32:13 UTC 2024 - Last Modified: Mon Nov 14 21:05:19 UTC 2022 - 1.9K bytes - Viewed (0) -
internal/dsync/drwmutex.go
done = true } } case <-ctx.Done(): // Capture timedout locks as failed or took too long locksFailed++ if locksFailed > tolerance { // We know that we are not going to get the lock anymore, // so exit out and release any locks that did get acquired done = true } } if done { break } }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Sep 09 15:49:49 UTC 2024 - 20.4K bytes - Viewed (0) -
cni/pkg/nodeagent/informers_test.go
fs.Start(ctx) server := getFakeDP(fs, client.Kube()) handlers := setupHandlers(ctx, client, server, "istio-system") client.RunAndWait(ctx.Done()) pods := handlers.GetActiveAmbientPodSnapshot() // Should skip both pods - the one that's labeled but not annotated, and the one that's annotated but terminated. assert.Equal(t, len(pods), 0) } func TestAmbientEnabledReturnsPodIfEnabled(t *testing.T) { setupLogging()
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Oct 09 16:05:45 UTC 2024 - 22.1K bytes - Viewed (0) -
cmd/batch-expire.go
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Sep 18 17:59:03 UTC 2024 - 21.9K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/ClosingFuture.java
* that returns a {@code ClosingFuture} to its value. The function can use a {@link * DeferredCloser} to capture objects to be closed when the pipeline is done (other than those * captured by the returned {@link ClosingFuture}). * * <p>If this {@code ClosingFuture} succeeds, the derived one will be equivalent to the one * returned by the function. *
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Oct 08 19:36:35 UTC 2024 - 98.5K bytes - Viewed (0) -
guava/src/com/google/common/base/AbstractIterator.java
protected AbstractIterator() {} private enum State { READY, NOT_READY, DONE, FAILED, } @CheckForNull private T next; @CheckForNull protected abstract T computeNext(); @CanIgnoreReturnValue @CheckForNull protected final T endOfData() { state = State.DONE; return null; } @Override public final boolean hasNext() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Jul 09 17:31:04 UTC 2021 - 2.5K bytes - Viewed (0) -
cni/pkg/nodeagent/server_test.go
if f.testWG != nil { defer f.testWG.Done() } args := f.Called(ambientPods) return args.Error(0) } // Custom "wait group with timeout" for waiting for fakeServer calls in a goroutine to finish type WaitGroup struct { count int32 done chan struct{} } func NewWaitGroup() *WaitGroup { return &WaitGroup{ done: make(chan struct{}), } }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Oct 09 16:05:45 UTC 2024 - 18.7K bytes - Viewed (0) -
internal/config/lambda/target/lazyinit.go
type lazyInit struct { done uint32 m sync.Mutex } func (l *lazyInit) Do(f func() error) error { if atomic.LoadUint32(&l.done) == 0 { return l.doSlow(f) } return nil } func (l *lazyInit) doSlow(f func() error) error { l.m.Lock() defer l.m.Unlock() if atomic.LoadUint32(&l.done) == 0 { if err := f(); err != nil { return err }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Mar 07 16:12:41 UTC 2023 - 1.3K bytes - Viewed (0) -
cmd/storage-rest-server.go
rc io.ReadCloser done chan struct{} } func (c *closeNotifier) Read(p []byte) (n int, err error) { n, err = c.rc.Read(p) if err != nil { if c.done != nil { xioutil.SafeClose(c.done) c.done = nil } } return n, err } func (c *closeNotifier) Close() error { if c.done != nil { xioutil.SafeClose(c.done) c.done = nil } return c.rc.Close() }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Aug 14 17:11:51 UTC 2024 - 45.7K bytes - Viewed (0)