Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 351 for closing (0.18 sec)

  1. internal/logger/target/http/http.go

    	lastStarted time.Time
    
    	wg sync.WaitGroup
    
    	// Channel of log entries.
    	// Reading logCh must hold read lock on logChMu (to avoid read race)
    	// Sending a value on logCh must hold read lock on logChMu (to avoid closing)
    	logCh   chan interface{}
    	logChMu sync.RWMutex
    
    	// If this webhook is being re-configured we will
    	// assign the new webhook target to this field.
    	// The Send() method will then re-direct entries
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 25 16:44:20 GMT 2024
    - 14.9K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/SmbTransportPoolImpl.java

        public boolean close () throws CIFSException {
            boolean inUse = false;
    
            List<SmbTransportImpl> toClose;
            synchronized ( this.connections ) {
                cleanup();
                log.debug("Closing pool");
                toClose = new LinkedList<>(this.connections);
                toClose.addAll(this.nonPooledConnections);
                this.connections.clear();
                this.nonPooledConnections.clear();
            }
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Dec 20 14:09:34 GMT 2020
    - 12.5K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/io/CharSourceTest.java

        // TODO(cgdecker): Add CharSource.slice?
        StringBuilder builder = new StringBuilder();
        Reader reader = concatenated.openStream(); // no need to worry about closing
        for (int i = 0; i < 8; i++) {
          builder.append((char) reader.read());
        }
        assertEquals(expected, builder.toString());
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 13K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/io/CharSourceTest.java

        // TODO(cgdecker): Add CharSource.slice?
        StringBuilder builder = new StringBuilder();
        Reader reader = concatenated.openStream(); // no need to worry about closing
        for (int i = 0; i < 8; i++) {
          builder.append((char) reader.read());
        }
        assertEquals(expected, builder.toString());
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 12K bytes
    - Viewed (0)
  5. maven-compat/src/main/java/org/apache/maven/repository/legacy/DefaultUpdateCheckManager.java

                    if (channel != null) {
                        try {
                            channel.close();
                        } catch (IOException e) {
                            getLogger().debug("Error closing FileChannel for resolution tracking file: " + touchfile, e);
                        }
                    }
                }
            }
        }
    
        Date readLastUpdated(File touchfile, String key) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Sep 06 11:28:54 GMT 2023
    - 12.1K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/io/Closer.java

        public void suppress(Closeable closeable, Throwable thrown, Throwable suppressed) {
          // log to the same place as Closeables
          Closeables.logger.log(
              Level.WARNING, "Suppressing exception thrown when closing " + closeable, suppressed);
        }
      }
    
      /**
       * Suppresses exceptions by adding them to the exception that will be thrown using JDK7's
       * addSuppressed(Throwable) mechanism.
       */
      @VisibleForTesting
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Mar 06 15:15:46 GMT 2024
    - 11.9K bytes
    - Viewed (0)
  7. okhttp-testing-support/src/main/kotlin/okhttp3/OkHttpClientTestRule.kt

          val connectionPool = it.connectionPool
    
          connectionPool.evictAll()
          if (connectionPool.connectionCount() > 0) {
            // Minimise test flakiness due to possible race conditions with connections closing.
            // Some number of tests will report here, but not fail due to this delay.
            println("Delaying to avoid flakes")
            Thread.sleep(500L)
            println("After delay: " + connectionPool.connectionCount())
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  8. docs/en/docs/how-to/sql-databases-peewee.md

    !!! tip
        This will just make Peewee behave correctly when used with FastAPI. Not randomly opening or closing connections that are being used, creating errors, etc.
    
        But it doesn't give Peewee async super-powers. You should still use normal `def` functions and not `async def`.
    
    ### Use the custom `PeeweeConnectionState` class
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Jan 16 13:23:25 GMT 2024
    - 23.6K bytes
    - Viewed (1)
  9. android/guava/src/com/google/common/io/CharStreams.java

        @Override
        public String toString() {
          return "CharStreams.nullWriter()";
        }
      }
    
      /**
       * Returns a Writer that sends all output to the given {@link Appendable} target. Closing the
       * writer will close the target if it is {@link Closeable}, and flushing the writer will flush the
       * target if it is {@link java.io.Flushable}.
       *
       * @param target the object to which output will be sent
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 17 14:35:11 GMT 2023
    - 10.9K bytes
    - Viewed (0)
  10. docs/de/docs/advanced/websockets.md

        ```
    
    !!! info
        Da es sich um einen WebSocket handelt, macht es keinen Sinn, eine `HTTPException` auszulösen, stattdessen lösen wir eine `WebSocketException` aus.
    
        Sie können einen „Closing“-Code verwenden, aus den <a href="https://tools.ietf.org/html/rfc6455#section-7.4.1" class="external-link" target="_blank">gültigen Codes, die in der Spezifikation definiert sind</a>.
    
    ### WebSockets mit Abhängigkeiten ausprobieren
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 20:17:58 GMT 2024
    - 6.9K bytes
    - Viewed (0)
Back to top