Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 66 for afterFunc (0.17 sec)

  1. api/go1.21.txt

    pkg bytes, method (*Buffer) Available() int #53685
    pkg cmp, func Compare[$0 Ordered]($0, $0) int #59488
    pkg cmp, func Less[$0 Ordered]($0, $0) bool #59488
    pkg cmp, type Ordered interface {} #59488
    pkg context, func AfterFunc(Context, func()) func() bool #57928
    pkg context, func WithDeadlineCause(Context, time.Time, error) (Context, CancelFunc) #56661
    pkg context, func WithoutCancel(Context) Context #40221
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 07 09:39:17 UTC 2023
    - 25.6K bytes
    - Viewed (0)
  2. cmd/server-main.go

    			})
    		}
    	}()
    
    	go func() {
    		r := rand.New(rand.NewSource(time.Now().UnixNano()))
    
    		if !globalDisableFreezeOnBoot {
    			defer bootstrapTrace("unfreezeServices", unfreezeServices)
    			t := time.AfterFunc(5*time.Minute, func() {
    				warnings = append(warnings, color.YellowBold("- Initializing the config subsystem is taking longer than 5 minutes. Please set '_MINIO_DISABLE_API_FREEZE_ON_BOOT=true' to not freeze the APIs"))
    			})
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 04 15:12:57 UTC 2024
    - 34.5K bytes
    - Viewed (0)
  3. internal/grid/grid_test.go

    	// Wait for the server start the request.
    	<-reqStarted
    
    	// Block until we have exceeded the deadline several times over.
    	nowBlocking := make(chan struct{})
    	var mu sync.Mutex
    	time.AfterFunc(time.Second, func() {
    		mu.Lock()
    		cancel()
    		close(nowBlocking)
    		mu.Unlock()
    	})
    	if inCap > 0 {
    		go func() {
    			defer close(st.Requests)
    			if !blockReq {
    				<-nowBlocking
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 07 15:51:52 UTC 2024
    - 36.4K bytes
    - Viewed (0)
  4. pilot/pkg/serviceregistry/kube/controller/controller.go

    	}
    	return err.ErrorOrNil()
    }
    
    // Run all controllers until a signal is received
    func (c *Controller) Run(stop <-chan struct{}) {
    	if c.opts.SyncTimeout != 0 {
    		time.AfterFunc(c.opts.SyncTimeout, func() {
    			if !c.queue.HasSynced() {
    				log.Warnf("kube controller for %s initial sync timed out", c.opts.ClusterID)
    				c.initialSyncTimedout.Store(true)
    			}
    		})
    	}
    	st := time.Now()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 41.2K bytes
    - Viewed (0)
  5. src/internal/fuzz/worker.go

    	comm, err := getWorkerComm()
    	if err != nil {
    		return err
    	}
    	srv := &workerServer{
    		workerComm: comm,
    		fuzzFn: func(e CorpusEntry) (time.Duration, error) {
    			timer := time.AfterFunc(10*time.Second, func() {
    				panic("deadlocked!") // this error message won't be printed
    			})
    			defer timer.Stop()
    			start := time.Now()
    			err := fn(e)
    			return time.Since(start), err
    		},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 37.7K bytes
    - Viewed (0)
  6. src/runtime/time.go

    	// number to recognize and squech stale function invocations.
    	// When used from package time, arg is a channel (for After, NewTicker)
    	// or the function to call (for AfterFunc) and seq is unused (0).
    	//
    	// Package time does not know about seq, but if this is a channel timer (t.isChan == true),
    	// this file uses t.seq as a sequence number to recognize and squelch
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 29 14:36:24 UTC 2024
    - 37.5K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher_whitebox_test.go

    		}
    	}
    
    	pred := storage.Everything
    	pred.AllowWatchBookmarks = true
    
    	// run the collision test for 3 seconds to let ~2 buckets expire
    	stopCh := make(chan struct{})
    	var watchErr error
    	time.AfterFunc(3*time.Second, func() { close(stopCh) })
    
    	wg := &sync.WaitGroup{}
    
    	wg.Add(1)
    	go func() {
    		defer wg.Done()
    		for {
    			select {
    			case <-stopCh:
    				return
    			default:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 82.9K bytes
    - Viewed (0)
  8. src/runtime/pprof/pprof_test.go

    	r := regexp.MustCompile(re)
    
    	if deadline, ok := t.Deadline(); ok {
    		if d := time.Until(deadline); d > 1*time.Second {
    			timer := time.AfterFunc(d-1*time.Second, func() {
    				debug.SetTraceback("all")
    				panic(fmt.Sprintf("timed out waiting for %#q", re))
    			})
    			defer timer.Stop()
    		}
    	}
    
    	buf := make([]byte, 64<<10)
    	for {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 68.8K bytes
    - Viewed (0)
  9. src/testing/testing.go

    }
    
    // startAlarm starts an alarm if requested.
    func (m *M) startAlarm() time.Time {
    	if *timeout <= 0 {
    		return time.Time{}
    	}
    
    	deadline := time.Now().Add(*timeout)
    	m.timer = time.AfterFunc(*timeout, func() {
    		m.after()
    		debug.SetTraceback("all")
    		extra := ""
    
    		if list := runningList(); len(list) > 0 {
    			var b strings.Builder
    			b.WriteString("\nrunning tests:")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 76.1K bytes
    - Viewed (0)
  10. platforms/core-runtime/concurrent/src/main/java/org/gradle/internal/concurrent/InterruptibleRunnable.java

            } finally {
                afterRun();
            }
        }
    
        private void beforeRun() {
            stateLock.lock();
            try {
                thread = Thread.currentThread();
                if (interrupted) {
                    thread.interrupt();
                }
            } finally {
                stateLock.unlock();
            }
        }
    
        private void afterRun() {
            stateLock.lock();
            try {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 19:07:35 UTC 2024
    - 2.4K bytes
    - Viewed (0)
Back to top