Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 198 for isShutdown (0.26 sec)

  1. samples/jwt-server/src/main.go

    	go s.runHTTP(fmt.Sprintf(":%s", *httpPort))
    	if s.serverCertificate != "" && s.serverPrivateKey != "" {
    		go s.runHTTPS(fmt.Sprintf(":%s", *httpsPort))
    	}
    	defer s.stop()
    
    	// Wait for the process to be shutdown.
    	sigs := make(chan os.Signal, 1)
    	signal.Notify(sigs, syscall.SIGINT, syscall.SIGTERM)
    	<-sigs
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 16 23:56:50 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  2. regression-test/src/androidTest/java/okhttp/regression/compare/AndroidHttpEngineTest.kt

              .build(),
          )
          .addQuicHint("google.com", 443, 443)
          .addQuicHint("www.google.com", 443, 443)
          .build()
    
      @After
      fun tearDown() {
        engine.shutdown()
        cacheDir.deleteRecursively()
      }
    
      @Test
      fun get() {
        val executor = Executors.newCachedThreadPool()
    
        val completableFuture = execute(engine, executor, "https://google.com/robots.txt")
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sun Mar 24 13:19:43 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/ListenableFutureTaskTest.java

                listenerLatch.countDown();
              }
            },
            directExecutor());
      }
    
      @Override
      protected void tearDown() throws Exception {
        if (exec != null) {
          exec.shutdown();
        }
    
        super.tearDown();
      }
    
      public void testListenerDoesNotRunUntilTaskCompletes() throws Exception {
    
        // Test default state of not started.
        assertEquals(1, listenerLatch.getCount());
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  4. ci/official/utilities/code_check_changed_files.bats

        echo "You have to re-generate the TF API goldens and have the API changes reviewed."
        echo "Look at the instructions for ':api_compatibility_test -- --update_goldens=True'"
    }
    
    teardown_file() {
        bazel shutdown
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jan 10 19:39:41 UTC 2024
    - 4K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/util/concurrent/FluentFutureTest.java

          ExecutionException e = assertThrows(ExecutionException.class, () -> f.get());
          assertThat(e).hasCauseThat().isInstanceOf(TimeoutException.class);
        } finally {
          executor.shutdown();
        }
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 13 14:28:25 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/util/concurrent/TrustedListenableFutureTaskTest.java

          }
          barrier.await(); // release the threads!
          barrier.await(); // wait for them all to complete
          assertEquals(1, task.get().intValue());
          assertEquals(1, counter.get());
        }
        executor.shutdown();
      }
    
      @J2ktIncompatible
      @GwtIncompatible // blocking wait
      public void testToString() throws Exception {
        final CountDownLatch enterLatch = new CountDownLatch(1);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 13 14:28:25 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  7. platforms/core-runtime/messaging/src/main/java/org/gradle/internal/dispatch/AsyncDispatch.java

                }
                queue.add(message);
                condition.signalAll();
            } finally {
                lock.unlock();
            }
        }
    
        /**
         * Commences a shutdown of this dispatch.
         */
        @Override
        public void requestStop() {
            lock.lock();
            try {
                doRequestStop();
            } finally {
                lock.unlock();
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  8. platforms/core-runtime/functional/src/test/groovy/org/gradle/internal/lazy/LazyTest.groovy

                    // The barrier ensures that the threads all try to access lazy at nearly the same time
                    barrier.await()
                    total.addAndGet(lazy.get())
                }
            }
            executors.shutdown()
            executors.awaitTermination(1, TimeUnit.MINUTES)
            total
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:22:02 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/FluentFutureTest.java

          ExecutionException e = assertThrows(ExecutionException.class, () -> f.get());
          assertThat(e).hasCauseThat().isInstanceOf(TimeoutException.class);
        } finally {
          executor.shutdown();
        }
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 13 14:28:25 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/helper/CrawlingInfoHelperTest.java

                pool.execute(() -> {
                    assertEquals(result, crawlingInfoHelper.generateId(dataMap));
                    counter.incrementAndGet();
                });
            }
            pool.shutdown();
            pool.awaitTermination(10, TimeUnit.SECONDS);
            assertEquals(1000, counter.get());
        }
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 8.5K bytes
    - Viewed (0)
Back to top