Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 324 for Sleep (0.21 sec)

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

        }
      }
    
      private static void assertAtLeastTimePassed(Stopwatch stopwatch, long expectedMillis) {
        long elapsedMillis = stopwatch.elapsed(MILLISECONDS);
        /*
         * The "+ 5" below is to permit, say, sleep(10) to sleep only 9 milliseconds. We see such
         * behavior sometimes when running these tests publicly as part of Guava. "+ 5" is probably more
         * generous than it needs to be.
         */
        assertTrue(
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Feb 09 22:57:07 GMT 2022
    - 31.7K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/SimpleTimeLimiterTest.java

            public String call() throws InterruptedException {
              MILLISECONDS.sleep(DELAY_MS);
              return GOOD_CALLABLE_RESULT;
            }
          };
      private static final Callable<String> BAD_CALLABLE =
          new Callable<String>() {
            @Override
            public String call() throws InterruptedException, SampleException {
              MILLISECONDS.sleep(DELAY_MS);
              throw new SampleException();
            }
          };
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 9.5K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/core/lang/ThreadUtilTest.java

    import org.junit.Test;
    
    /**
     * @author shinsuke
     *
     */
    public class ThreadUtilTest {
    
        /**
         * @throws Exception
         */
        @Test
        public void test_sleep() throws Exception {
            ThreadUtil.sleep(1L);
            assertTrue(true);
            ThreadUtil.sleepQuietly(1L);
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void test_sleepQuietly() throws Exception {
    Java
    - Registered: Fri Apr 26 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.1K bytes
    - Viewed (0)
  4. buildscripts/disable-root.sh

    done
    
    sleep 10s
    
    if [ ! -f ./mc ]; then
    	wget --quiet -O ./mc https://dl.minio.io/client/mc/release/linux-amd64/./mc &&
    		chmod +x mc
    fi
    
    set +e
    
    export MC_HOST_minioadm=http://minioadmin:minioadmin@localhost:9100/
    
    ./mc ls minioadm/
    
    ./mc admin config set minioadm/ api root_access=off
    
    sleep 3s # let things settle a little
    
    ./mc ls minioadm/
    Shell Script
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Sep 16 09:28:06 GMT 2023
    - 3.4K bytes
    - Viewed (0)
  5. .github/workflows/multipart/migrate.sh

    docker-compose -f docker-compose-site2.yaml up -d
    
    sleep 30s
    
    ./mc alias set site1 http://site1-nginx:9001 minioadmin minioadmin --api s3v4
    ./mc alias set site2 http://site2-nginx:9002 minioadmin minioadmin --api s3v4
    
    ./mc ready site1/
    ./mc ready site2/
    
    ./mc admin replicate add site1 site2
    ./mc mb site1/testbucket/
    ./mc cp -r --quiet /usr/bin site1/testbucket/
    
    sleep 5
    
    s3-check-md5 -h
    
    Shell Script
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Apr 24 15:54:24 GMT 2024
    - 4.4K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/internal/http/ThreadInterruptTest.kt

        responseBody.close()
      }
    
      private fun sleep(delayMillis: Int) {
        try {
          Thread.sleep(delayMillis.toLong())
        } catch (e: InterruptedException) {
          Thread.currentThread().interrupt()
        }
      }
    
      private fun interruptLater(delayMillis: Int) {
        val toInterrupt = Thread.currentThread()
        val interruptingCow =
          Thread {
            sleep(delayMillis)
            toInterrupt.interrupt()
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.6K bytes
    - Viewed (0)
  7. internal/config/batch/help.go

    		config.HelpKV{
    			Key:         ReplicationWorkersWait,
    			Description: `maximum sleep duration between objects to slow down batch replication operation` + defaultHelpPostfix(ReplicationWorkersWait),
    			Optional:    true,
    			Type:        "duration",
    		},
    		config.HelpKV{
    			Key:         KeyRotationWorkersWait,
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sat Dec 02 10:51:33 GMT 2023
    - 1.8K bytes
    - Viewed (0)
  8. internal/config/heal/help.go

    			Optional:    true,
    			Type:        "on|off",
    		},
    		config.HelpKV{
    			Key:         Sleep,
    			Description: `maximum sleep duration between objects to slow down heal operation` + defaultHelpPostfix(Sleep),
    			Optional:    true,
    			Type:        "duration",
    		},
    		config.HelpKV{
    			Key:         IOCount,
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Sep 11 21:48:54 GMT 2023
    - 1.8K bytes
    - Viewed (0)
  9. docs/distributed/decom.sh

    	count=$((count + 1))
    	if [ ${count} -eq 120 ]; then
    		./mc cat /tmp/expanded_*.log
    	fi
    	sleep 1
    done
    
    kill $pid_1
    kill $pid_2
    
    sleep 5
    
    (minio server --address ":9001" http://localhost:9001/tmp/xl/{11...30}/disk{0...3} 2>&1 >/tmp/removed.log) &
    pid=$!
    
    sleep 30
    
    export MC_HOST_myminio="http://minioadmin:minioadmin@localhost:9001/"
    
    Shell Script
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Apr 23 17:15:52 GMT 2024
    - 6.4K bytes
    - Viewed (0)
  10. internal/lsync/lrwmutex_test.go

    		panic("Failed to acquire read lock")
    	}
    	// fmt.Println("2nd read lock acquired, waiting...")
    
    	go func() {
    		time.Sleep(2 * time.Second)
    		lrwm.RUnlock()
    		// fmt.Println("1st read lock released, waiting...")
    	}()
    
    	go func() {
    		time.Sleep(3 * time.Second)
    		lrwm.RUnlock()
    		// fmt.Println("2nd read lock released, waiting...")
    	}()
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sun Mar 05 04:57:35 GMT 2023
    - 7.9K bytes
    - Viewed (0)
Back to top