Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 318 for isShutdown (0.15 sec)

  1. src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_386.go

    	return
    }
    
    func Listen(s int, n int) (err error) {
    	_, e := socketcall(_LISTEN, uintptr(s), uintptr(n), 0, 0, 0, 0)
    	if e != 0 {
    		err = e
    	}
    	return
    }
    
    func Shutdown(s, how int) (err error) {
    	_, e := socketcall(_SHUTDOWN, uintptr(s), uintptr(how), 0, 0, 0, 0)
    	if e != 0 {
    		err = e
    	}
    	return
    }
    
    func Fstatfs(fd int, buf *Statfs_t) (err error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 8.9K bytes
    - Viewed (0)
  2. subprojects/core/src/main/java/org/gradle/process/internal/shutdown/ShutdownHooks.java

                // interrupting other shutdown hooks, so we catch it here.
                //
                // Caused by: java.lang.IllegalStateException: Shutdown in progress
                //        at java.base/java.lang.ApplicationShutdownHooks.remove(ApplicationShutdownHooks.java:82)
                //        at java.base/java.lang.Runtime.removeShutdownHook(Runtime.java:243)
                LOGGER.error("Remove shutdown hook failed", e);
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jan 12 05:56:18 UTC 2021
    - 2K bytes
    - Viewed (0)
  3. docs/en/docs/advanced/events.md

    ### `shutdown` event
    
    To add a function that should be run when the application is shutting down, declare it with the event `"shutdown"`:
    
    ```Python hl_lines="6"
    {!../../../docs_src/events/tutorial002.py!}
    ```
    
    Here, the `shutdown` event handler function will write a text line `"Application shutdown"` to a file `log.txt`.
    
    !!! info
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  4. 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: Wed Sep 06 17:04:31 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/server/lifecycle_signals.go

    	- /readyz starts returning red
        - run pre shutdown hooks
    
    T0+70s: AfterShutdownDelayDuration: shutdown delay duration has passed
    	- the default value of 'ShutdownDelayDuration' is '70s'
    	- it's time to initiate shutdown of the HTTP Server, server.Shutdown is invoked
    	- as a consequene, the Close function has is called for all listeners
     	- the HTTP Server stops listening immediately
    	- any new request arriving on a new TCP socket is denied with
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 27 15:49:30 UTC 2023
    - 7.8K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apimachinery/pkg/watch/mux_test.go

    	m := NewBroadcaster(0, WaitIfChannelFull)
    	m.Shutdown()
    
    	_, err := m.Watch()
    	assert.EqualError(t, err, "broadcaster already stopped", "Watch should report error id broadcaster is shutdown")
    
    	_, err = m.WatchWithPrefix([]Event{event1, event2})
    	assert.EqualError(t, err, "broadcaster already stopped", "WatchWithPrefix should report error id broadcaster is shutdown")
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 16 15:26:25 UTC 2022
    - 8K bytes
    - Viewed (0)
  7. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r22/ClientShutdownCrossVersionSpec.groovy

            toolingApi.close()
        }
    
        def "can shutdown tooling API session when no operations have been executed"() {
            given:
            toolingApi.close()
    
            when:
            toolingApi.withConnection {}
    
            then:
            thrown(IllegalStateException)
        }
    
        def "cleans up idle daemons when tooling API session is shutdown"() {
            withConnection { connection ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 4K bytes
    - Viewed (0)
  8. pilot/pkg/xds/pushqueue_test.go

    		t.Parallel()
    		p := NewPushQueue()
    		defer p.ShutDown()
    		p.Enqueue(proxies[0], &model.PushRequest{})
    		p.Enqueue(proxies[1], &model.PushRequest{})
    
    		ExpectDequeue(t, p, proxies[0])
    		ExpectDequeue(t, p, proxies[1])
    	})
    
    	t.Run("remove too many", func(t *testing.T) {
    		t.Parallel()
    		p := NewPushQueue()
    		defer p.ShutDown()
    
    		p.Enqueue(proxies[0], &model.PushRequest{})
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 00:26:45 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/concurrent/TaskQueue.kt

        task: Task,
        delayNanos: Long = 0L,
      ) {
        taskRunner.lock.withLock {
          if (shutdown) {
            if (task.cancelable) {
              taskRunner.logger.taskLog(task, this) { "schedule canceled (queue is shutdown)" }
              return
            }
            taskRunner.logger.taskLog(task, this) { "schedule failed (queue is shutdown)" }
            throw RejectedExecutionException()
          }
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  10. docs_src/events/tutorial002.py

    from fastapi import FastAPI
    
    app = FastAPI()
    
    
    @app.on_event("shutdown")
    def shutdown_event():
        with open("log.txt", mode="a") as log:
            log.write("Application shutdown")
    
    
    @app.get("/items/")
    async def read_items():
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Mar 26 19:09:53 UTC 2020
    - 255 bytes
    - Viewed (0)
Back to top