Search Options

Results per page
Sort
Preferred Languages
Advance

Results 161 - 170 of 482 for callableId (0.94 sec)

  1. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/repositories/transport/NetworkOperationBackOffAndRetryTest.groovy

    import spock.lang.Specification
    
    import java.util.concurrent.Callable
    
    class NetworkOperationBackOffAndRetryTest extends Specification {
    
        def 'retries operation on transient network issue and fails after max attempts - #ex'() {
            when:
            int attempts = 0
            Callable operation = {
                attempts++
                throw ex
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Dec 07 04:09:56 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  2. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/SettingsScriptApi.kt

         * - A [org.gradle.api.provider.Provider] of any supported type.
         *   The provider's value is resolved recursively.
         * - A [java.util.concurrent.Callable] that returns any supported type.
         *   The callable's return value is resolved recursively.
         *
         * @param path The object to resolve as a `File`.
         * @return The resolved file.
         */
        @Suppress("unused")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 15.3K bytes
    - Viewed (0)
  3. guava/src/com/google/common/util/concurrent/ListeningScheduledExecutorService.java

          Callable<V> callable, long delay, TimeUnit unit);
    
      /**
       * Duration-based overload of {@link #schedule(Callable, long, TimeUnit)}.
       *
       * @since 29.0
       */
      default <V extends @Nullable Object> ListenableScheduledFuture<V> schedule(
          Callable<V> callable, Duration delay) {
        return schedule(callable, toNanosSaturated(delay), TimeUnit.NANOSECONDS);
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Apr 04 09:45:04 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/SimpleTimeLimiterTest.java

      private static final Callable<String> GOOD_CALLABLE =
          new Callable<String>() {
            @Override
            public String call() throws InterruptedException {
              MILLISECONDS.sleep(DELAY_MS);
              return GOOD_CALLABLE_RESULT;
            }
          };
      private static final Callable<String> BAD_CALLABLE =
          new Callable<String>() {
            @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 9.5K bytes
    - Viewed (0)
  5. platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/CallableExtensionsTest.kt

     */
    
    package org.gradle.kotlin.dsl
    
    import org.junit.Assert.assertEquals
    import org.junit.Test
    import java.util.concurrent.Callable
    
    
    class CallableExtensionsTest {
    
        @Test
        fun `Callable#call can be called using invoke`() {
            val answer = "42"
            val answerCallable = Callable { answer }
    
            assertEquals(answer, answerCallable())
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 974 bytes
    - Viewed (0)
  6. platforms/jvm/plugins-java-base/src/integTest/groovy/org/gradle/api/plugins/jvm/internal/AbstractJvmPluginServicesTest.groovy

        def tasks = Mock(TaskContainerInternal)
        def project = Stub(ProjectInternal) {
            getObjects() >> TestUtil.objectFactory()
            getProviders() >> TestUtil.providerFactory()
            provider(_ as Callable<Object>) >> {
                Callable producer -> TestUtil.providerFactory().provider(
                    {
                        producer.call()
                    }
                )
            }
            getLayout() >> Stub(ProjectLayout) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 12:15:28 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  7. android/guava-testlib/test/com/google/common/testing/FakeTickerTest.java

        runConcurrentTest(
            numberOfThreads,
            new Callable<@Nullable Void>() {
              @Override
              public @Nullable Void call() throws Exception {
                long unused = ticker.read();
                return null;
              }
            });
    
        assertEquals(incrementByNanos * numberOfThreads, ticker.read());
      }
    
      /** Runs {@code callable} concurrently {@code numberOfThreads} times. */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 06 14:40:46 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  8. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/DefaultProvider.java

    import java.util.concurrent.Callable;
    
    /**
     * A provider whose value is computed by a {@link Callable}.
     *
     * <h3>Configuration Cache Behavior</h3>
     * <b>Eager</b>. The value is computed at store time and loaded from the cache.
     */
    public class DefaultProvider<T> extends AbstractMinimalProvider<T> {
        private final Callable<? extends T> value;
    
        public DefaultProvider(Callable<? extends T> value) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jan 17 23:22:41 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/util/concurrent/ListeningScheduledExecutorService.java

      /** @since 15.0 (previously returned ScheduledFuture) */
      @Override
      <V extends @Nullable Object> ListenableScheduledFuture<V> schedule(
          Callable<V> callable, long delay, TimeUnit unit);
    
      /** @since 15.0 (previously returned ScheduledFuture) */
      @Override
      ListenableScheduledFuture<?> scheduleAtFixedRate(
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Apr 04 09:45:04 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  10. platforms/core-runtime/concurrent/src/test/groovy/org/gradle/internal/concurrent/DefaultExecutorFactoryTest.groovy

            given:
            def failure1 = new RuntimeException()
            def action1 = new Callable<Void>() {
                Void call() {
                    instant.broken1
                    throw failure1
                }
            }
            def failure2 = new RuntimeException()
            def action2 = new Callable<Void>() {
                Void call() {
                    instant.broken2
                    throw failure2
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 19:07:35 UTC 2024
    - 11.2K bytes
    - Viewed (0)
Back to top