Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 88 for closeable (0.16 sec)

  1. android/guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java

      final ExecutorService closingExecutor = newSingleThreadExecutor();
    
      final TestCloseable closeable1 = new TestCloseable("closeable1");
      final TestCloseable closeable2 = new TestCloseable("closeable2");
      final TestCloseable closeable3 = new TestCloseable("closeable3");
      final TestCloseable closeable4 = new TestCloseable("closeable4");
    
      final Waiter waiter = new Waiter();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue May 07 12:37:15 UTC 2024
    - 75.3K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java

      final ExecutorService closingExecutor = newSingleThreadExecutor();
    
      final TestCloseable closeable1 = new TestCloseable("closeable1");
      final TestCloseable closeable2 = new TestCloseable("closeable2");
      final TestCloseable closeable3 = new TestCloseable("closeable3");
      final TestCloseable closeable4 = new TestCloseable("closeable4");
    
      final Waiter waiter = new Waiter();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue May 07 12:37:15 UTC 2024
    - 75.3K bytes
    - Viewed (0)
  3. guava/src/com/google/common/io/Closer.java

      /**
       * Registers the given {@code closeable} to be closed when this {@code Closer} is {@linkplain
       * #close closed}.
       *
       * @return the given {@code closeable}
       */
      // close. this word no longer has any meaning to me.
      @CanIgnoreReturnValue
      @ParametricNullness
      public <C extends @Nullable Closeable> C register(@ParametricNullness C closeable) {
        if (closeable != null) {
          stack.addFirst(closeable);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue May 07 15:26:58 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/io/Closer.java

      /**
       * Registers the given {@code closeable} to be closed when this {@code Closer} is {@linkplain
       * #close closed}.
       *
       * @return the given {@code closeable}
       */
      // close. this word no longer has any meaning to me.
      @CanIgnoreReturnValue
      @ParametricNullness
      public <C extends @Nullable Closeable> C register(@ParametricNullness C closeable) {
        if (closeable != null) {
          stack.addFirst(closeable);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue May 07 15:26:58 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  5. platforms/core-runtime/concurrent/src/main/java/org/gradle/internal/concurrent/CompositeStoppable.java

            for (Object closeable : elements) {
                add(closeable);
            }
            return this;
        }
    
        public CompositeStoppable add(Object... elements) {
            for (Object closeable : elements) {
                add(closeable);
            }
            return this;
        }
    
        public synchronized CompositeStoppable add(Object closeable) {
            this.elements.add(toStoppable(closeable));
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 19:07:35 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/io/CloserTest.java

          this.closeable = closeable;
          this.thrown = thrown;
          this.suppressed = suppressed;
        }
    
        @Override
        public boolean equals(@Nullable Object obj) {
          if (obj instanceof Suppression) {
            Suppression other = (Suppression) obj;
            return closeable.equals(other.closeable)
                && thrown.equals(other.thrown)
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue May 07 15:26:58 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  7. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/EncryptionService.kt

            else
                input.invoke()
    
        /**
         * Wraps an inner closeable into an outer closeable, while ensuring that
         * if the wrapper function fails, the inner closeable is closed before
         * the exception is thrown.
         *
         * @param innerSupplier the supplier that produces the inner closeable that is to be safely wrapped
         * @param unsafeWrapper a wrapping function that is potentially unsafe
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:30 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  8. platforms/core-runtime/build-state/src/main/java/org/gradle/internal/session/BuildSessionState.java

    import org.gradle.internal.service.scopes.GradleUserHomeScopeServiceRegistry;
    import org.gradle.internal.service.scopes.Scope;
    
    import java.io.Closeable;
    import java.util.function.Function;
    
    /**
     * Encapsulates the state for a build session.
     */
    public class BuildSessionState implements Closeable {
        private final GradleUserHomeScopeServiceRegistry userHomeScopeServiceRegistry;
        private final ServiceRegistry userHomeServices;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 13 21:54:27 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/util/concurrent/ClosingFuture.java

         * in which {@code Cursor} is {@code Closeable}. To support older versions, pass a wrapper
         * {@code Closeable} with a method reference like {@code cursor::close}.
         *
         * <p>Note that this method is still binary-compatible between flavors because the erasure of
         * its parameter type is {@code Object}, not {@code AutoCloseable} or {@code Closeable}.
         *
         * @param closeable the object to be closed (see notes above)
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue May 07 12:37:15 UTC 2024
    - 98.3K bytes
    - Viewed (0)
  10. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/service/DefaultServiceRegistryConcurrencyTest.groovy

            registry.add(Closeable, {
                instant.closing
                thread.blockUntil.lookupDone
            } as Closeable)
    
            when:
            async {
                start() {
                    registry.close()
                }
                start {
                    thread.blockUntil.closing
                    try {
                        registry.get(Closeable)
                    } finally {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 27 12:34:44 UTC 2024
    - 4K bytes
    - Viewed (0)
Back to top