Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 522 for could (0.33 sec)

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

        assertThat(expected)
            .hasMessageThat()
            .isEqualTo("I bet you didn't think Thread.interrupt could throw");
        // We need to wait for the runner to exit.  It used to be that the runner would get stuck in the
        // busy loop when interrupt threw.
        runner.join(TimeUnit.SECONDS.toMillis(10));
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/InterruptibleTaskTest.java

        assertThat(expected)
            .hasMessageThat()
            .isEqualTo("I bet you didn't think Thread.interrupt could throw");
        // We need to wait for the runner to exit.  It used to be that the runner would get stuck in the
        // busy loop when interrupt threw.
        runner.join(TimeUnit.SECONDS.toMillis(10));
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  3. android/guava-tests/benchmark/com/google/common/io/ByteSourceAsCharSourceReadBenchmark.java

              // it is kind of lame that we need to construct a decoder to access this value.
              // if this is a concern we could add special cases for some known charsets (like utf8)
              // or we could avoid inputstreamreader and use the decoder api directly
              // TODO(lukes): in a real implementation we would need to handle overflow conditions
              int maxChars = (int) (size.get().intValue() * cs.newDecoder().maxCharsPerByte());
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 5.2K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/util/concurrent/AbstractExecutionThreadService.java

       * to stop requests. You could poll for lifecycle changes in a work loop:
       *
       * <pre>
       *   public void run() {
       *     while ({@link #isRunning()}) {
       *       // perform a unit of work
       *     }
       *   }
       * </pre>
       *
       * <p>...or you could respond to stop requests by implementing {@link #triggerShutdown()}, which
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Dec 13 19:45:20 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  5. integration-tests/gradle/gradlew

            MAX_FD=$( ulimit -H -n ) ||
                warn "Could not query maximum file descriptor limit"
        esac
        case $MAX_FD in  #(
          '' | soft) :;; #(
          *)
            # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
            # shellcheck disable=SC2039,SC3045
            ulimit -n "$MAX_FD" ||
                warn "Could not set maximum file descriptor limit to $MAX_FD"
        esac
    fi
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Oct 31 19:07:19 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  6. guava/src/com/google/common/util/concurrent/AbstractTransformFuture.java

         *
         * - Any kind of Error from a listener. Even if we could distinguish that case (by exposing some
         * extra state from AbstractFuture), our options are limited: A call to setException() would be
         * a no-op. We could log, but if that's what we really want, we should modify
         * AbstractFuture.executeListener to do so, since that method would have the ability to continue
         * to execute other listeners.
         *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 01 21:46:34 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/collect/testing/google/MultimapPutIterableTester.java

          fail();
        } catch (NullPointerException expected) {
        }
    
        /*
         * In principle, a Multimap implementation could add e3 first before failing on the null. But
         * that seems unlikely enough to be worth complicating the test over, especially if there's any
         * chance that a permissive test could mask a bug.
         */
        expectUnchanged();
        // Be extra thorough in case internal state was corrupted by the expected null.
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jan 09 20:10:38 UTC 2018
    - 7.6K bytes
    - Viewed (0)
  8. guava/src/com/google/common/util/concurrent/LazyLogger.java

      LazyLogger(Class<?> ownerOfLogger) {
        this.loggerName = ownerOfLogger.getName();
      }
    
      Logger get() {
        /*
         * We use double-checked locking. We could the try racy single-check idiom, but that would
         * depend on Logger not contain mutable state.
         *
         * We could use Suppliers.memoizingSupplier here, but I micro-optimized to this implementation
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Dec 13 19:45:20 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/io/testdata/alice_in_wonderland.txt

                                                           askance--
    Said he thanked the whiting kindly, but he would not join the
       dance.
        Would not, could not, would not, could not, would not join
            the dance.
        Would not, could not, would not, could not, could not join
            the dance.
    
    `"What matters it how far we go?" his scaly friend replied.
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Oct 29 21:35:03 UTC 2012
    - 145.2K bytes
    - Viewed (0)
  10. guava/src/com/google/common/graph/InvalidatableSet.java

        // Don't use checkState(), because we don't want the overhead of generating the error message
        // unless it's actually going to be used; validate() is called for all set method calls, so it
        // needs to be fast.
        // (We could instead generate the message once, when the set is created, but zero is better.)
        if (!validator.get()) {
          throw new IllegalStateException(errorMessage.get());
        }
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jan 22 17:29:38 UTC 2024
    - 1.8K bytes
    - Viewed (0)
Back to top