Search Options

Results per page
Sort
Preferred Languages
Advance

Results 161 - 170 of 904 for _close (0.07 sec)

  1. android/guava/src/com/google/common/io/Files.java

        }
    
        @Override
        public byte[] read() throws IOException {
          Closer closer = Closer.create();
          try {
            FileInputStream in = closer.register(openStream());
            return ByteStreams.toByteArray(in, in.getChannel().size());
          } catch (Throwable e) {
            throw closer.rethrow(e);
          } finally {
            closer.close();
          }
        }
    
        @Override
        public String toString() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 32.9K bytes
    - Viewed (0)
  2. api/maven-api-cli/src/main/java/org/apache/maven/api/cli/Invoker.java

         * if they need to perform cleanup operations.</p>
         *
         * @throws InvokerException if an error occurs while closing the {@link Invoker}
         */
        @Override
        default void close() throws InvokerException {}
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Jan 31 20:56:58 UTC 2025
    - 2.6K bytes
    - Viewed (0)
  3. okhttp-coroutines/src/test/kotlin/okhttp3/coroutines/ExecuteAsyncTest.kt

                override fun contentType() = null
    
                override fun contentLength() = -1L
    
                override fun source() =
                  object : ForwardingSource(Buffer()) {
                    override fun close() {
                      responseClosed = true
                    }
                  }.buffer()
              },
            ).build()
    
        var responseClosed = false
        var canceled = false
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/smb1/SmbRandomAccessFile.java

        }
    
        /**
         * Closes the file and releases any system resources associated with it.
         *
         * @throws SmbException if an I/O error occurs
         */
        public void close() throws SmbException {
            file.close();
        }
    
        @Override
        public final boolean readBoolean() throws SmbException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  5. guava/src/com/google/common/io/Files.java

        }
    
        @Override
        public byte[] read() throws IOException {
          Closer closer = Closer.create();
          try {
            FileInputStream in = closer.register(openStream());
            return ByteStreams.toByteArray(in, in.getChannel().size());
          } catch (Throwable e) {
            throw closer.rethrow(e);
          } finally {
            closer.close();
          }
        }
    
        @Override
        public String toString() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 32.9K bytes
    - Viewed (0)
  6. src/main/java/jcifs/util/SmbCircuitBreaker.java

        }
    
        /**
         * Close circuit breaker and cleanup resources
         */
        public void close() {
            if (thresholdAdjustmentTask != null) {
                thresholdAdjustmentTask.cancel(false);
            }
            if (scheduler != null) {
                scheduler.shutdown();
            }
            log.info("[{}] Circuit breaker closed and resources cleaned up", name);
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 33.4K bytes
    - Viewed (0)
  7. src/main/java/jcifs/SmbTransportPool.java

         */
        void removeTransport(SmbTransport trans);
    
        /**
         * Closes the pool and all connections in it
         *
         * @return whether any transport was still in use
         *
         * @throws CIFSException if an error occurs during authentication
         *
         */
        boolean close() throws CIFSException;
    
        /**
         * Authenticate arbitrary credentials represented by the
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 7.5K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/dcerpc/DcerpcHandle.java

         */
        protected abstract void doReceiveFragment(byte[] buf, boolean isDirect) throws IOException;
    
        /**
         * Closes this DCERPC handle and releases resources
         * @throws IOException if an I/O error occurs during close
         */
        public abstract void close() throws IOException;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  9. internal/lru/lru.go

    		c.removeOldest()
    	}
    	c.size = size
    	return diff
    }
    
    // Close destroys cleanup goroutine. To clean up the cache, run Purge() before Close().
    // func (c *LRU[K, V]) Close() {
    //	c.mu.Lock()
    //	defer c.mu.Unlock()
    //	select {
    //	case <-c.done:
    //		return
    //	default:
    //	}
    //	close(c.done)
    // }
    
    // removeOldest removes the oldest item from the cache. Has to be called with lock!
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Fri Apr 25 08:22:26 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  10. okhttp/src/jvmTest/kotlin/okhttp3/internal/http/CancelTest.kt

        assertFailsWith<IOException> {
          while (responseBody.read(buffer) != -1) {
          }
        }.also { expected ->
          assertEquals(cancelMode == INTERRUPT, Thread.interrupted())
        }
        responseBody.close()
        assertEquals(if (connectionType == H2) 1 else 0, client.connectionPool.connectionCount())
      }
    
      @ParameterizedTest
      @ArgumentsSource(CancelModelParamProvider::class)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 9.8K bytes
    - Viewed (0)
Back to top