Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 258 for timeEnd (0.28 sec)

  1. cni/pkg/nodeagent/server_test.go

    	wg := &WaitGroup{
    		done: make(chan struct{}),
    	}
    
    	wg.Add(n)
    	return wg, func() {
    		select {
    		case <-wg.C():
    			return
    		case <-time.After(time.Second):
    			t.Fatal("Wait group timed out!\n")
    		}
    	}
    }
    
    func (wg *WaitGroup) Add(i int32) {
    	select {
    	case <-wg.done:
    		panic("use of an already closed WaitGroup")
    	default:
    	}
    	atomic.AddInt32(&wg.count, i)
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 26 20:34:28 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/server/filters/timeout_test.go

    		// this error must be ignored by the WithPanicRecovery handler
    		// it is thrown by WithTimeoutForNonLongRunningRequests handler when a response has been already sent to the client and the handler timed out
    		// panicking with http.ErrAbortHandler also suppresses logging of a stack trace to the server's error log and closes the underlying connection
    		w.Write([]byte("hello from the handler"))
    		panic(http.ErrAbortHandler)
    	})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 26 16:28:45 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/TimeoutFuture.java

          } else {
            try {
              ScheduledFuture<?> timer = timeoutFuture.timer;
              timeoutFuture.timer = null; // Don't include already elapsed delay in delegate.toString()
              String message = "Timed out";
              // This try-finally block ensures that we complete the timeout future, even if attempting
              // to produce the message throws (probably StackOverflowError from delegate.toString())
              try {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 01 21:46:34 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/FuturesGetCheckedTest.java

                    getChecked(
                        FAILED_FUTURE_CHECKED_EXCEPTION, ExceptionWithGoodAndBadConstructor.class));
        assertThat(expected).hasCauseThat().isSameInstanceAs(CHECKED_EXCEPTION);
      }
    
      // Boring timed-get tests:
    
      public void testGetCheckedTimed_success() throws TwoArgConstructorException {
        assertEquals(
            "foo", getChecked(immediateFuture("foo"), TwoArgConstructorException.class, 0, SECONDS));
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 16.4K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/AbstractExecutionThreadServiceTest.java

            assertThrows(
                TimeoutException.class,
                () -> service.startAsync().awaitRunning(1, TimeUnit.MILLISECONDS));
        assertThat(e)
            .hasMessageThat()
            .isEqualTo("Timed out waiting for Foo [STARTING] to reach the RUNNING state.");
      }
    
      private class FakeService extends AbstractExecutionThreadService implements TearDown {
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 12.7K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/util/concurrent/FuturesGetCheckedTest.java

                    getChecked(
                        FAILED_FUTURE_CHECKED_EXCEPTION, ExceptionWithGoodAndBadConstructor.class));
        assertThat(expected).hasCauseThat().isSameInstanceAs(CHECKED_EXCEPTION);
      }
    
      // Boring timed-get tests:
    
      public void testGetCheckedTimed_success() throws TwoArgConstructorException {
        assertEquals(
            "foo", getChecked(immediateFuture("foo"), TwoArgConstructorException.class, 0, SECONDS));
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 16.4K bytes
    - Viewed (0)
  7. src/internal/trace/base.go

    // has 5 arguments and needs to smuggle in a 6th. Figure out a way to
    // shrink this in the future.
    const maxArgs = 6
    
    // timedEventArgs is an array that is able to hold the arguments for any
    // timed event.
    type timedEventArgs [maxArgs - 1]uint64
    
    // baseEvent is the basic unprocessed event. This serves as a common
    // fundamental data structure across.
    type baseEvent struct {
    	typ  event.Type
    	time Time
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  8. pkg/controller/storageversiongc/gc_controller.go

    	logger.Info("Starting storage version garbage collector")
    
    	if !cache.WaitForCacheSync(ctx.Done(), c.leasesSynced, c.storageVersionSynced) {
    		utilruntime.HandleError(fmt.Errorf("timed out waiting for caches to sync"))
    		return
    	}
    
    	// Identity lease deletion and storageversion update don't happen too often. Start one
    	// worker for each of them.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 10K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/util/concurrent/AbstractExecutionThreadServiceTest.java

            assertThrows(
                TimeoutException.class,
                () -> service.startAsync().awaitRunning(1, TimeUnit.MILLISECONDS));
        assertThat(e)
            .hasMessageThat()
            .isEqualTo("Timed out waiting for Foo [STARTING] to reach the RUNNING state.");
      }
    
      private class FakeService extends AbstractExecutionThreadService implements TearDown {
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 12.7K bytes
    - Viewed (0)
  10. src/syscall/exec_unix_test.go

    	defer timer.Stop()
    	for {
    		select {
    		case sig := <-ch1:
    			t.Errorf("unexpected signal %v", sig)
    		case <-ch2:
    			// Success.
    			return
    		case <-timer.C:
    			t.Fatal("timed out waiting for child process")
    		}
    	}
    }
    
    // Test a couple of cases that SysProcAttr can't handle. Issue 29458.
    func TestInvalidExec(t *testing.T) {
    	t.Parallel()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 22 04:41:27 UTC 2024
    - 7.9K bytes
    - Viewed (0)
Back to top