Search Options

Results per page
Sort
Preferred Languages
Advance

Results 171 - 180 of 533 for callableId (0.2 sec)

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

        assertThat(Duration.ofNanos(recordedDelay)).isEqualTo(Duration.ofSeconds(12));
      }
    
      public void testScheduleCallable() throws Exception {
        Callable<String> callable = () -> "hello";
    
        ListenableScheduledFuture<String> future =
            executorService.schedule(callable, Duration.ofMinutes(12));
    
        assertThat(future.get()).isEqualTo("hello");
        assertThat(recordedTimeUnit).isEqualTo(TimeUnit.NANOSECONDS);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Mar 17 20:45:59 UTC 2020
    - 6.1K bytes
    - Viewed (0)
  2. platforms/ide/ide-plugins/src/main/java/org/gradle/plugins/ide/idea/IdeaPlugin.java

                conventionMapping.map("jdkName", new Callable<String>() {
                    @Override
                    public String call() {
                        return JavaVersion.current().toString();
                    }
                });
                conventionMapping.map("languageLevel", new Callable<IdeaLanguageLevel>() {
                    @Override
                    public IdeaLanguageLevel call() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 12 14:00:13 UTC 2023
    - 25.2K bytes
    - Viewed (0)
  3. 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)
  4. subprojects/core/src/main/java/org/gradle/api/internal/file/copy/PathNotationConverter.java

                    || notation instanceof Number
                    || notation instanceof Boolean) {
                result.converted(notation.toString());
            } else if (notation instanceof Callable) {
                final Callable<?> callableNotation = (Callable<?>) notation;
                final Object called = uncheckedCall(callableNotation);
                convert(called, result);
            } else if (notation instanceof Provider) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 12:20:43 UTC 2024
    - 3K bytes
    - Viewed (0)
  5. 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)
  6. platforms/core-runtime/internal-instrumentation-processor/src/main/java/org/gradle/internal/instrumentation/processor/codegen/groovy/GroovyClassGeneratorUtils.java

                        .orElseThrow(() -> new IllegalStateException("Interception type name is not set for " + request.getInterceptedCallable().getOwner().getType()));
                    CallableInfo callable = request.getInterceptedCallable();
                    CallableKindInfo kind = callable.getKind();
                    if (kind == CallableKindInfo.AFTER_CONSTRUCTOR) {
                        Type constructedType = request.getInterceptedCallable().getOwner().getType();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 15 13:39:36 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  7. 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)
  8. tensorflow/cc/experimental/libtf/tests/object_test.cc

      TF_ASSERT_OK(child.Get(String("test3")).status());
    }
    
    TEST(ObjectTest, CallFunctionOnObject) {
      Object module;
      module.Set(String("add"), Callable(TaggedValue(AddIntegers)));
      TF_ASSERT_OK_AND_ASSIGN(Callable method, module.Get<Callable>(String("add")));
    
      TF_ASSERT_OK_AND_ASSIGN(Integer val, method.Call<Integer>(1, 2));
      EXPECT_EQ(val.get(), 3);
    }
    
    TEST(ObjectTest, Capsule) {
      Object obj;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jul 28 21:37:07 UTC 2021
    - 5.7K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top