Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for FutureTask (0.16 sec)

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

        final Runnable runChosenTest =
            new Runnable() {
              @Override
              public void run() {
                runChosenTest();
              }
            };
        final FutureTask<@Nullable Void> task = new FutureTask<>(runChosenTest, null);
        startThread(
            new Runnable() {
              @Override
              public void run() {
                task.run();
              }
            });
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Apr 17 14:48:57 GMT 2023
    - 27.4K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/GeneratedMonitorTest.java

        final Runnable runChosenTest =
            new Runnable() {
              @Override
              public void run() {
                runChosenTest();
              }
            };
        final FutureTask<@Nullable Void> task = new FutureTask<>(runChosenTest, null);
        startThread(
            new Runnable() {
              @Override
              public void run() {
                task.run();
              }
            });
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 17 14:48:57 GMT 2023
    - 26.1K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/AbstractTransformFuture.java

         * Any of the setException() calls below can fail if the output Future is cancelled between now
         * and then. This means that we're silently swallowing an exception -- maybe even an Error. But
         * this is no worse than what FutureTask does in that situation. Additionally, because the
         * Future was cancelled, its listeners have been run, so its consumers will not hang.
         *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 01 21:46:34 GMT 2024
    - 10.6K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/util/concurrent/AbstractScheduledService.java

             * Future might not even be a ListenableFuture, just a plain Future. That said, similar
             * problems can exist with methods like FutureTask.done(), not to mention slow calls to
             * Thread.interrupt() (as discussed in InterruptibleTask). At the end of the day, it's
             * unlikely that cancel() will be slow, so we can probably get away with calling it while
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Dec 13 19:45:20 GMT 2023
    - 25.8K bytes
    - Viewed (0)
Back to top