Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 74 for isShutdown (0.17 sec)

  1. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/problems/ConfigurationCacheReport.kt

                }
    
                override fun close(): State {
                    if (executor.isShutdown) {
                        writer.close()
                    } else {
                        executor.submit {
                            writer.close()
                        }
                        executor.shutdown()
                    }
                    return Closed
                }
    
                private
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:30 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  2. android/guava-testlib/test/com/google/common/testing/GcFinalizationTest.java

                  }
                }
              });
          this.shutdown = shutdown;
          start();
        }
    
        void shutdown() {
          shutdown.set(true);
          while (this.isAlive()) {
            Thread.yield();
          }
        }
      }
    
      void assertWrapsInterruptedException(RuntimeException e) {
        assertThat(e).hasMessageThat().contains("Unexpected interrupt");
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jun 10 19:21:11 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  3. src/net/http/server.go

    // for them to close, if desired. See [Server.RegisterOnShutdown] for a way to
    // register shutdown notification functions.
    //
    // Once Shutdown has been called on a server, it may not be reused;
    // future calls to methods such as Serve will return ErrServerClosed.
    func (srv *Server) Shutdown(ctx context.Context) error {
    	srv.inShutdown.Store(true)
    
    	srv.mu.Lock()
    	lnerr := srv.closeListenersLocked()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 123.4K bytes
    - Viewed (0)
  4. pkg/ctrlz/ctrlz.go

    			Handler:        router,
    		},
    	}
    
    	s.shutdown.Add(1)
    	go s.listen()
    
    	return s, nil
    }
    
    func (s *Server) listen() {
    	log.Infof("ControlZ available at %s", s.httpServer.Addr)
    	if listeningTestProbe != nil {
    		go listeningTestProbe()
    	}
    	err := s.httpServer.Serve(s.listener)
    	log.Infof("ControlZ terminated: %v", err)
    	s.shutdown.Done()
    }
    
    // Close terminates ControlZ.
    //
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jun 11 21:22:53 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go

    	{105, "ENOBUFS", "no buffer space available"},
    	{106, "EISCONN", "transport endpoint is already connected"},
    	{107, "ENOTCONN", "transport endpoint is not connected"},
    	{108, "ESHUTDOWN", "cannot send after transport endpoint shutdown"},
    	{109, "ETOOMANYREFS", "too many references: cannot splice"},
    	{110, "ETIMEDOUT", "connection timed out"},
    	{111, "ECONNREFUSED", "connection refused"},
    	{112, "EHOSTDOWN", "host is down"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 34.2K 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. src/cmd/vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go

    	{105, "ENOBUFS", "no buffer space available"},
    	{106, "EISCONN", "transport endpoint is already connected"},
    	{107, "ENOTCONN", "transport endpoint is not connected"},
    	{108, "ESHUTDOWN", "cannot send after transport endpoint shutdown"},
    	{109, "ETOOMANYREFS", "too many references: cannot splice"},
    	{110, "ETIMEDOUT", "connection timed out"},
    	{111, "ECONNREFUSED", "connection refused"},
    	{112, "EHOSTDOWN", "host is down"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 34.2K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/sys/unix/zerrors_linux_386.go

    	{105, "ENOBUFS", "no buffer space available"},
    	{106, "EISCONN", "transport endpoint is already connected"},
    	{107, "ENOTCONN", "transport endpoint is not connected"},
    	{108, "ESHUTDOWN", "cannot send after transport endpoint shutdown"},
    	{109, "ETOOMANYREFS", "too many references: cannot splice"},
    	{110, "ETIMEDOUT", "connection timed out"},
    	{111, "ECONNREFUSED", "connection refused"},
    	{112, "EHOSTDOWN", "host is down"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 34.2K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java

        executor.shutdown();
        assertFalse(awaitTerminationUninterruptibly(executor, 1000, MILLISECONDS));
        assertFalse(executor.isTerminated());
        assertInterrupted();
      }
    
      public void testTryAwaitTerminationInfiniteTimeout() {
        ExecutorService executor = newFixedThreadPool(1);
        requestInterruptIn(500);
        executor.execute(new SleepTask(1000));
        executor.shutdown();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jun 10 16:06:39 UTC 2024
    - 31.7K bytes
    - Viewed (0)
  10. platforms/core-configuration/configuration-cache/src/test/kotlin/org/gradle/internal/cc/impl/InputTrackingStateTest.kt

            val enabledOnOtherThread: Boolean
            try {
                enabledOnOtherThread = otherThread.submit(state::isEnabledForCurrentThread).get()
            } finally {
                otherThread.shutdown()
            }
    
            assertTrue(enabledOnOtherThread)
        }
    
        @Test
        fun `input tracking is restored to the state when it was disabled`() {
            val state = InputTrackingState()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 3.7K bytes
    - Viewed (0)
Back to top