Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 318 for isShutdown (0.19 sec)

  1. android/guava-testlib/src/com/google/common/util/concurrent/testing/AbstractListenableFutureTest.java

        assertTrue(future.isDone());
    
        assertTrue(successLatch.await(200, MILLISECONDS));
        assertTrue(listenerLatch.await(200, MILLISECONDS));
    
        latch.countDown();
    
        exec.shutdown();
        exec.awaitTermination(100, MILLISECONDS);
      }
    
      /**
       * Tests that all listeners complete, even if they were added before or after the future was
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 18:30:30 UTC 2023
    - 6K bytes
    - Viewed (0)
  2. cmd/kube-scheduler/app/testing/testserver.go

    	var errCh chan error
    	tearDown := func() {
    		cancel()
    
    		// If the scheduler was started, let's wait for it to
    		// shutdown clearly.
    		if errCh != nil {
    			err, ok := <-errCh
    			if ok && err != nil {
    				logger.Error(err, "Failed to shutdown test server clearly")
    			}
    		}
    		if len(result.TmpDir) != 0 {
    			os.RemoveAll(result.TmpDir)
    		}
    		configz.Delete("componentconfig")
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 24 10:35:59 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  3. subprojects/core/src/main/java/org/gradle/api/internal/project/antbuilder/Cleanup.java

            this.key = classPath;
            this.classLoader = classLoader;
        }
    
        ClassPath getKey() {
            return key;
        }
    
        void cleanup(Mode mode) {
            groovySystemForClassLoader.shutdown();
            gradleApiGroovyLoader.discardTypesFrom(classLoader);
            antBuilderGroovyLoader.discardTypesFrom(classLoader);
            if (mode == Mode.CLOSE_CLASSLOADER) {
                ClassLoaderUtils.tryClose(classLoader);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 09 13:21:30 UTC 2016
    - 2.3K bytes
    - Viewed (0)
  4. samples/guide/src/main/java/okhttp3/recipes/kt/DevServer.kt

          client.newCall(request).execute().use { response ->
            if (!response.isSuccessful) throw IOException("Unexpected code $response")
    
            println(response.request.url)
          }
        } finally {
          server.shutdown()
        }
      }
    }
    
    fun main() {
      DevServer().run()
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/mylasta/direction/sponsor/FessCurtainFinallyHook.java

                method.invoke(null, (Object[]) null);
            } catch (final ClassNotFoundException e) {
                // ignore
            } catch (final Exception e) {
                logger.warn("Could not shutdown Commons HttpClient.", e);
            }
        }
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  6. platforms/enterprise/enterprise/src/test/groovy/org/gradle/internal/enterprise/impl/DefaultGradleEnterprisePluginBackgroundJobExecutorsTest.groovy

            when:
            def task = new FutureTask<>(() -> 1)
            jobExecutors.userJobExecutor.execute(task)
    
            then:
            task.get() == 1
        }
    
        def "background job is rejected if submitted after shutdown"() {
            given:
            jobExecutors.stop()
    
            when:
            jobExecutors.userJobExecutor.execute {}
    
            then:
            thrown RejectedExecutionException
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 2K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/util/concurrent/testing/AbstractListenableFutureTest.java

        assertTrue(future.isDone());
    
        assertTrue(successLatch.await(200, MILLISECONDS));
        assertTrue(listenerLatch.await(200, MILLISECONDS));
    
        latch.countDown();
    
        exec.shutdown();
        exec.awaitTermination(100, MILLISECONDS);
      }
    
      /**
       * Tests that all listeners complete, even if they were added before or after the future was
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 18:30:30 UTC 2023
    - 6K bytes
    - Viewed (0)
  8. subprojects/core/src/main/java/org/gradle/api/internal/classloading/PreferenceCleaningGroovySystemLoader.java

            this.leakingLoader = leakingLoader;
            prefListenerField = AbstractPreferences.class.getDeclaredField("prefListeners");
            prefListenerField.setAccessible(true);
        }
    
        @Override
        public void shutdown() {
            try {
                Preferences groovyNode = Preferences.userRoot().node("/org/codehaus/groovy/tools/shell");
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Oct 27 13:08:25 UTC 2018
    - 2.2K bytes
    - Viewed (0)
  9. platforms/core-execution/workers/src/integTest/groovy/org/gradle/workers/internal/WorkerDaemonIntegrationTest.groovy

                constructorAction = """
                    Runtime.getRuntime().addShutdownHook(new Thread(new Runnable() {
                        @Override
                        public void run() {
                            println "Shutdown working dir: " + System.getProperty("user.dir")
                        }
                    }));
                """
                action += """
                    println "Execution working dir: " + System.getProperty("user.dir")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:36:27 UTC 2023
    - 8.6K bytes
    - Viewed (0)
  10. pkg/queue/instance.go

    	}
    	q.cond.Signal()
    }
    
    func (q *queueImpl) Closed() <-chan struct{} {
    	return q.closed
    }
    
    // get blocks until it can return a task to be processed. If shutdown = true,
    // the processing go routine should stop.
    func (q *queueImpl) get() (task *queueTask, shutdown bool) {
    	q.cond.L.Lock()
    	defer q.cond.L.Unlock()
    	// wait for closing to be set, or a task to be pushed
    	for !q.closing && len(q.tasks) == 0 {
    		q.cond.Wait()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jul 21 16:30:36 UTC 2023
    - 4.1K bytes
    - Viewed (0)
Back to top