Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 36 for closeable4 (0.41 seconds)

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

      @SuppressWarnings("IdentifierName")
      public static void close(@Nullable Closeable closeable, boolean swallowIOException)
          throws IOException {
        if (closeable == null) {
          return;
        }
        try {
          closeable.close();
        } catch (IOException e) {
          if (swallowIOException) {
            logger.log(Level.WARNING, "IOException thrown while closing Closeable.", e);
          } else {
            throw e;
          }
        }
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 17 20:26:29 GMT 2025
    - 5.1K bytes
    - Click Count (0)
  2. src/main/java/org/codelibs/core/io/CloseableUtil.java

         * </p>
         *
         * @param closeable the closeable object
         * @see Closeable#close()
         */
        public static void close(final Closeable closeable) {
            if (closeable == null) {
                return;
            }
            try {
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jul 31 08:16:49 GMT 2025
    - 2.5K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/ClosingFutureLeakTest.java

    @J2ktIncompatible
    public class ClosingFutureLeakTest extends TestCase {
      public void testLeak() {
        TestCloseable closeable = new TestCloseable("closeable");
        awaitClear(leakClosingFuture(closeable));
        assertThat(closeable.awaitClosed()).isTrue();
      }
    
      private WeakReference<ClosingFuture<String>> leakClosingFuture(TestCloseable closeable) {
        ClosingFuture<String> willCloseCloseable =
            ClosingFuture.submit(
                closer -> {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Mar 07 02:20:33 GMT 2026
    - 1.8K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/util/concurrent/ClosingFutureLeakTest.java

    @J2ktIncompatible
    public class ClosingFutureLeakTest extends TestCase {
      public void testLeak() {
        TestCloseable closeable = new TestCloseable("closeable");
        awaitClear(leakClosingFuture(closeable));
        assertThat(closeable.awaitClosed()).isTrue();
      }
    
      private WeakReference<ClosingFuture<String>> leakClosingFuture(TestCloseable closeable) {
        ClosingFuture<String> willCloseCloseable =
            ClosingFuture.submit(
                closer -> {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Mar 07 02:20:33 GMT 2026
    - 1.8K bytes
    - Click Count (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/ClosingFutureFinishToValueAndCloserTest.java

      }
    
      public void testFinishToValueAndCloser_throwsAfterCallingFinishToFuture() throws Exception {
        ClosingFuture<Closeable> closingFuture =
            ClosingFuture.submit(closer -> closer.eventuallyClose(mockCloseable, executor), executor);
        FluentFuture<Closeable> unused = closingFuture.finishToFuture();
        assertThrows(
            IllegalStateException.class,
            () ->
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 5.2K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/io/AppendableWriter.java

    import com.google.common.annotations.J2ktIncompatible;
    import java.io.Closeable;
    import java.io.Flushable;
    import java.io.IOException;
    import java.io.Writer;
    import org.jspecify.annotations.Nullable;
    
    /**
     * Writer that places all output on an {@link Appendable} target. If the target is {@link Flushable}
     * or {@link Closeable}, flush()es and close()s will also be delegated to the target.
     *
     * @author Alan Green
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:37:28 GMT 2025
    - 3.4K bytes
    - Click Count (0)
  7. guava-tests/test/com/google/common/util/concurrent/ClosingFutureFinishToFutureTest.java

        ClosingFuture<Closeable> closingFuture =
            ClosingFuture.submit(closer -> closer.eventuallyClose(mockCloseable, executor), executor);
        FluentFuture<Closeable> unused = closingFuture.finishToFuture();
        assertThrows(
            IllegalStateException.class,
            () -> {
              FluentFuture<Closeable> unused2 = closingFuture.finishToFuture();
            });
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 3.3K bytes
    - Click Count (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/ClosingFutureFinishToFutureTest.java

        ClosingFuture<Closeable> closingFuture =
            ClosingFuture.submit(closer -> closer.eventuallyClose(mockCloseable, executor), executor);
        FluentFuture<Closeable> unused = closingFuture.finishToFuture();
        assertThrows(
            IllegalStateException.class,
            () -> {
              FluentFuture<Closeable> unused2 = closingFuture.finishToFuture();
            });
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 3.3K bytes
    - Click Count (0)
  9. guava-tests/test/com/google/common/util/concurrent/ClosingFutureFinishToValueAndCloserTest.java

      }
    
      public void testFinishToValueAndCloser_throwsAfterCallingFinishToFuture() throws Exception {
        ClosingFuture<Closeable> closingFuture =
            ClosingFuture.submit(closer -> closer.eventuallyClose(mockCloseable, executor), executor);
        FluentFuture<Closeable> unused = closingFuture.finishToFuture();
        assertThrows(
            IllegalStateException.class,
            () ->
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 5.2K bytes
    - Click Count (0)
  10. samples/slack/src/main/java/okhttp3/slack/RtmSession.java

     * limitations under the License.
     */
    package okhttp3.slack;
    
    import java.io.Closeable;
    import java.io.IOException;
    import okhttp3.WebSocket;
    import okhttp3.Response;
    import okhttp3.WebSocketListener;
    
    /** A realtime messaging session. */
    public final class RtmSession extends WebSocketListener implements Closeable {
      private final SlackApi slackApi;
    
      /** Guarded by this. */
      private WebSocket webSocket;
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sat Nov 19 20:16:58 GMT 2016
    - 2.4K bytes
    - Click Count (0)
Back to Top