Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 810 for isShutdown (0.17 sec)

  1. samples/guide/src/main/java/okhttp3/recipes/WebSocketEcho.java

        Request request = new Request.Builder()
            .url("ws://echo.websocket.org")
            .build();
        client.newWebSocket(request, this);
    
        // Trigger shutdown of the dispatcher's executor so this process exits immediately.
        client.dispatcher().executorService().shutdown();
      }
    
      @Override public void onOpen(WebSocket webSocket, Response response) {
        webSocket.send("Hello...");
        webSocket.send("...World!");
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Thu Apr 04 11:40:21 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/AbstractIdleService.java

    import java.util.concurrent.TimeUnit;
    import java.util.concurrent.TimeoutException;
    
    /**
     * Base class for services that do not need a thread while "running" but may need one during startup
     * and shutdown. Subclasses can implement {@link #startUp} and {@link #shutDown} methods, each which
     * run in an executor which by default uses a separate thread for each method.
     *
     * @author Chris Nokleberg
     * @since 1.0
     */
    @GwtIncompatible
    @J2ktIncompatible
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 17 13:59:28 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  3. docs/em/docs/advanced/events.md

    ๐Ÿ‘† ๐Ÿ’ช ๐Ÿšฎ ๐ŸŒ… ๐ŸŒ˜ 1๏ธโƒฃ ๐ŸŽ‰ ๐Ÿ•โ€๐Ÿฆบ ๐Ÿ”ข.
    
    & ๐Ÿ‘† ๐Ÿˆธ ๐Ÿ† ๐Ÿšซ โ–ถ๏ธ ๐Ÿ“จ ๐Ÿ“จ โญ ๐ŸŒ `startup` ๐ŸŽ‰ ๐Ÿ•โ€๐Ÿฆบ โœ”๏ธ ๐Ÿ.
    
    ### `shutdown` ๐ŸŽ‰
    
    ๐Ÿšฎ ๐Ÿ”ข ๐Ÿ‘ˆ ๐Ÿ”œ ๐Ÿƒ ๐Ÿ•โ” ๐Ÿˆธ ๐Ÿคซ ๐Ÿ”ฝ, ๐Ÿ“ฃ โšซ๏ธ โฎ๏ธ ๐ŸŽ‰ `"shutdown"`:
    
    ```Python hl_lines="6"
    {!../../../docs_src/events/tutorial002.py!}
    ```
    
    ๐Ÿ“ฅ, `shutdown` ๐ŸŽ‰ ๐Ÿ•โ€๐Ÿฆบ ๐Ÿ”ข ๐Ÿ”œ โœ โœ โธ `"Application shutdown"` ๐Ÿ“ `log.txt`.
    
    !!! info
         `open()` ๐Ÿ”ข, `mode="a"` โ›“ "๐ŸŽป",, โธ ๐Ÿ”œ ๐Ÿšฎ โฎ๏ธ โšซ๏ธโ” ๐Ÿ”› ๐Ÿ‘ˆ ๐Ÿ“, ๐Ÿต ๐Ÿ“ โฎ๏ธ ๐ŸŽš.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  4. 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)
  5. src/test/java/jcifs/tests/ConcurrencyTest.java

                    while ( !this.started ) {
                        this.startedLock.wait();
                    }
                }
            }
    
    
            public void shutdown () {
                this.shutdown = true;
                synchronized ( this.shutdownLock ) {
                    this.shutdownLock.notify();
                }
            }
    
    
            /**
             * {@inheritDoc}
             *
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Nov 14 17:40:50 UTC 2021
    - 17.6K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/server/options/server_run_options.go

    	MaxRequestBodyBytes int64
    
    	// ShutdownSendRetryAfter dictates when to initiate shutdown of the HTTP
    	// Server during the graceful termination of the apiserver. If true, we wait
    	// for non longrunning requests in flight to be drained and then initiate a
    	// shutdown of the HTTP Server. If false, we initiate a shutdown of the HTTP
    	// Server as soon as ShutdownDelayDuration has elapsed.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 24 21:53:51 UTC 2023
    - 15.4K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiextensions-apiserver/examples/client-go/pkg/client/informers/externalversions/factory.go

    	Start(stopCh <-chan struct{})
    
    	// Shutdown marks a factory as shutting down. At that point no new
    	// informers can be started anymore and Start will return without
    	// doing anything.
    	//
    	// In addition, Shutdown blocks until all goroutines have terminated. For that
    	// to happen, the close channel(s) that they were started with must be closed,
    	// either before Shutdown gets called or while it is waiting.
    	//
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 18 18:31:26 UTC 2023
    - 8.9K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiextensions-apiserver/pkg/client/informers/externalversions/factory.go

    	Start(stopCh <-chan struct{})
    
    	// Shutdown marks a factory as shutting down. At that point no new
    	// informers can be started anymore and Start will return without
    	// doing anything.
    	//
    	// In addition, Shutdown blocks until all goroutines have terminated. For that
    	// to happen, the close channel(s) that they were started with must be closed,
    	// either before Shutdown gets called or while it is waiting.
    	//
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 18 18:31:26 UTC 2023
    - 9K bytes
    - Viewed (0)
  9. pkg/kubelet/nodeshutdown/nodeshutdown_manager_linux_test.go

    				assert.True(t, fakeDbus.didInhibitShutdown, "expected that manager inhibited shutdown")
    				assert.NoError(t, manager.ShutdownStatus(), "expected that manager does not return error since shutdown is not active")
    				assert.Equal(t, manager.Admit(nil).Admit, true)
    
    				// Send fake shutdown event
    				select {
    				case fakeShutdownChan <- true:
    				case <-time.After(1 * time.Second):
    					t.Fatal()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 29.8K bytes
    - Viewed (0)
  10. docs/de/docs/advanced/events.md

    ### `shutdown`-Event
    
    Um eine Funktion hinzuzufรผgen, die beim Herunterfahren der Anwendung ausgefรผhrt werden soll, deklarieren Sie sie mit dem Event `shutdown`:
    
    ```Python hl_lines="6"
    {!../../../docs_src/events/tutorial002.py!}
    ```
    
    Hier schreibt die `shutdown`-Eventhandler-Funktion eine Textzeile `"Application shutdown"` in eine Datei `log.txt`.
    
    !!! info
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 30 20:30:59 UTC 2024
    - 9.1K bytes
    - Viewed (0)
Back to top