Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 931 for sweep (0.05 sec)

  1. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r25/TestProgressCrossVersionSpec.groovy

            file("src/test/java/example/MyTest.java") << """
                package example;
                public class MyTest {
                    @org.junit.Test public void foo() throws Exception {
                         Thread.sleep(100);  // sleep for a moment to ensure test duration is > 0 (due to limited clock resolution)
                         org.junit.Assert.assertEquals(1, 1);
                    }
                }
            """
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 06 06:59:43 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  2. pilot/test/xdstest/grpc.go

    import (
    	"context"
    	"time"
    
    	"google.golang.org/grpc"
    
    	"istio.io/istio/pkg/log"
    	"istio.io/istio/pkg/sleep"
    )
    
    type slowClientStream struct {
    	grpc.ClientStream
    	recv, send time.Duration
    }
    
    func (w *slowClientStream) RecvMsg(m any) error {
    	if w.recv > 0 {
    		sleep.UntilContext(w.Context(), w.recv)
    		log.Infof("delayed recv for %v", w.recv)
    	}
    	return w.ClientStream.RecvMsg(m)
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  3. staging/src/k8s.io/client-go/applyconfigurations/core/v1/lifecyclehandler.go

    	HTTPGet   *HTTPGetActionApplyConfiguration   `json:"httpGet,omitempty"`
    	TCPSocket *TCPSocketActionApplyConfiguration `json:"tcpSocket,omitempty"`
    	Sleep     *SleepActionApplyConfiguration     `json:"sleep,omitempty"`
    }
    
    // LifecycleHandlerApplyConfiguration constructs an declarative configuration of the LifecycleHandler type for use with
    // apply.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 16 11:50:33 UTC 2023
    - 3K bytes
    - Viewed (0)
  4. internal/dsync/dsync_test.go

    	// fmt.Println("Lock acquired, waiting...")
    	time.Sleep(testDrwMutexRefreshCallTimeout)
    
    	dm.Unlock(context.Background())
    }
    
    func TestSimpleLockUnlockMultipleTimes(t *testing.T) {
    	dm := NewDRWMutex(ds, "test")
    
    	dm.Lock(id, source)
    	time.Sleep(time.Duration(10+(rand.Float32()*50)) * time.Millisecond)
    	dm.Unlock(context.Background())
    
    	dm.Lock(id, source)
    	time.Sleep(time.Duration(10+(rand.Float32()*50)) * time.Millisecond)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Dec 24 03:49:07 UTC 2022
    - 11K bytes
    - Viewed (0)
  5. test/fixedbugs/issue19182.go

    	go func() {
    		for {
    			atomic.AddUint64(&a, uint64(1))
    		}
    	}()
    
    	time.Sleep(10 * time.Millisecond) // Short sleep is enough in passing case
    	i, val := 0, atomic.LoadUint64(&a)
    	for ; val == 0 && i < 100; val, i = atomic.LoadUint64(&a), i+1 {
    		time.Sleep(100 * time.Millisecond)
    	}
    	if val == 0 {
    		fmt.Printf("Failed to observe atomic increment after %d tries\n", i)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 737 bytes
    - Viewed (0)
  6. fess-crawler/src/main/java/org/codelibs/fess/crawler/interval/impl/DefaultIntervalController.java

                ThreadUtil.sleep(delayMillisAfterProcessing);
            }
        }
    
        /*
         * (non-Javadoc)
         *
         * @see
         * org.codelibs.fess.crawler.interval.impl.AbstractIntervalController#delayAtNoUrlInQueue
         * ()
         */
        @Override
        protected void delayAtNoUrlInQueue() {
            if (delayMillisAtNoUrlInQueue > 0) {
                ThreadUtil.sleep(delayMillisAtNoUrlInQueue);
            }
    Registered: Wed Jun 12 15:17:51 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 3K bytes
    - Viewed (0)
  7. test/fixedbugs/issue38093.go

    	"os"
    	"syscall/js"
    	"time"
    )
    
    func main() {
    	ch1 := make(chan struct{})
    
    	go func() {
    		for {
    			time.Sleep(5 * time.Millisecond)
    			ch1 <- struct{}{}
    		}
    	}()
    	go func() {
    		for {
    			time.Sleep(8 * time.Millisecond)
    			ch1 <- struct{}{}
    		}
    	}()
    	go func() {
    		time.Sleep(2 * time.Second)
    		os.Exit(0)
    	}()
    
    	for range ch1 {
    		ch2 := make(chan struct{}, 1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 861 bytes
    - Viewed (0)
  8. src/internal/trace/testdata/testprog/gomaxprocs.go

    	// GOMAXPROCS calls.
    	go func() {
    		for {
    			runtime.GC()
    			time.Sleep(1 * time.Millisecond)
    		}
    	}()
    
    	// Start tracing.
    	if err := trace.Start(os.Stdout); err != nil {
    		log.Fatalf("failed to start tracing: %v", err)
    	}
    	// Run GOMAXPROCS a bunch of times, up and down.
    	for i := 1; i <= 16; i *= 2 {
    		runtime.GOMAXPROCS(i)
    		time.Sleep(1 * time.Millisecond)
    	}
    	for i := 16; i >= 1; i /= 2 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 967 bytes
    - Viewed (0)
  9. src/time/sleep_test.go

    		go func(i int) {
    			timer := AfterFunc(2*Second, func() {
    				t.Errorf("timer %d was not stopped", i)
    			})
    			Sleep(1 * Second)
    			timer.Stop()
    		}(i)
    	}
    	Sleep(3 * Second)
    }
    
    func TestSleepZeroDeadlock(t *testing.T) {
    	// Sleep(0) used to hang, the sequence of events was as follows.
    	// Sleep(0) sets G's status to Gwaiting, but then immediately returns leaving the status.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 22 16:33:57 UTC 2024
    - 22.5K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/core/lang/ThreadUtil.java

     *
     */
    public abstract class ThreadUtil {
    
        private static final Logger logger = Logger.getLogger(ThreadUtil.class);
    
        public static void sleep(final long millis) {
            if (millis < 1L) {
                return;
            }
            try {
                Thread.sleep(millis);
            } catch (final InterruptedException e) {
                throw new InterruptedRuntimeException(e);
            }
        }
    
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 1.5K bytes
    - Viewed (0)
Back to top