Search Options

Results per page
Sort
Preferred Languages
Advance

Results 221 - 230 of 478 for invokers (0.12 sec)

  1. guava/src/com/google/common/util/concurrent/Futures.java

       * primary input fails with the given {@code exceptionType}, from the result provided by the
       * {@code fallback}. {@link Function#apply} is not invoked until the primary input has failed, so
       * if the primary input succeeds, it is never invoked. If, during the invocation of {@code
       * fallback}, an exception is thrown, this exception is used as the result of the output {@code
       * Future}.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 13:13:32 UTC 2024
    - 64.4K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/base/Internal.java

        "Java7ApiChecker",
      })
      @IgnoreJRERequirement
      static long toNanosSaturated(Duration duration) {
        // Using a try/catch seems lazy, but the catch block will rarely get invoked (except for
        // durations longer than approximately +/- 292 years).
        try {
          return duration.toNanos();
        } catch (ArithmeticException tooBig) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Jan 11 14:30:06 UTC 2024
    - 2K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/testers/CollectionClearTester.java

    import java.util.ConcurrentModificationException;
    import java.util.Iterator;
    import org.junit.Ignore;
    
    /**
     * A generic JUnit test which tests {@code clear()} operations on a collection. Can't be invoked
     * directly; please see {@link com.google.common.collect.testing.CollectionTestSuiteBuilder}.
     *
     * @author George van den Driessche
     */
    @GwtCompatible
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 20:00:30 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/ForwardingObjectTester.java

                    T mock = mock(forwarderClass, CALLS_REAL_METHODS);
                    try {
                      T stubber = doReturn(delegate).when(mock);
                      DELEGATE_METHOD.invoke(stubber);
                    } catch (Exception e) {
                      throw new RuntimeException(e);
                    }
                    return mock;
                  }
                });
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Jan 05 19:41:03 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/eventbus/AllowConcurrentEvents.java

    import java.lang.annotation.RetentionPolicy;
    import java.lang.annotation.Target;
    
    /**
     * Marks an event subscriber method as being thread-safe. This annotation indicates that EventBus
     * may invoke the event subscriber simultaneously from multiple threads.
     *
     * <p>This does not mark the method, and so should be used in combination with {@link Subscribe}.
     *
     * @author Cliff Biffle
     * @since 10.0
     */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Apr 22 13:05:46 UTC 2021
    - 1.2K bytes
    - Viewed (0)
  6. tests/hooks_test.go

    	DB.AutoMigrate(&Product{})
    
    	p := Product{Code: "unique_code", Price: 100}
    	DB.Save(&p)
    
    	if !reflect.DeepEqual(p.GetCallTimes(), []int64{1, 1, 0, 1, 1, 0, 0, 0, 0}) {
    		t.Fatalf("Callbacks should be invoked successfully, %v", p.GetCallTimes())
    	}
    
    	DB.Where("Code = ?", "unique_code").First(&p)
    	if !reflect.DeepEqual(p.GetCallTimes(), []int64{1, 1, 0, 1, 0, 0, 0, 0, 1}) {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Jun 17 03:59:06 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/ForwardingList.java

     *
     * <p><b>{@code default} method warning:</b> This class does <i>not</i> forward calls to {@code
     * default} methods. Instead, it inherits their default implementations. When those implementations
     * invoke methods, they invoke methods on the {@code ForwardingList}.
     *
     * <p>The {@code standard} methods and any collection views they return are not guaranteed to be
     * thread-safe, even when all of the methods that they depend on are thread-safe.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 12 15:26:39 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/ForwardingSortedMultiset.java

     * method.
     *
     * <p><b>{@code default} method warning:</b> This class does <i>not</i> forward calls to {@code
     * default} methods. Instead, it inherits their default implementations. When those implementations
     * invoke methods, they invoke methods on the {@code ForwardingSortedMultiset}.
     *
     * <p>The {@code standard} methods and any collection views they return are not guaranteed to be
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 12 15:26:39 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  9. build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/AbstractBinaryCompatibilityTest.kt

         *
         * @param v1 sources producer for V1, receiver is the `src/main` directory
         * @param v2 sources producer for V2, receiver is the `src/main` directory
         * @param block convenience block invoked on the result
         * @return the check result
         */
        private
        fun runBinaryCompatibilityCheck(v1: File.() -> Unit, v2: File.() -> Unit, block: CheckResult.() -> Unit = {}): CheckResult {
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Tue Jun 04 14:00:46 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/testers/QueueElementTester.java

    import com.google.common.collect.testing.features.CollectionSize;
    import java.util.NoSuchElementException;
    import org.junit.Ignore;
    
    /**
     * A generic JUnit test which tests {@code element()} operations on a queue. Can't be invoked
     * directly; please see {@link com.google.common.collect.testing.CollectionTestSuiteBuilder}.
     *
     * @author Jared Levy
     */
    @GwtCompatible
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 20:00:30 UTC 2024
    - 2.3K bytes
    - Viewed (0)
Back to top