Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 533 for callableId (0.26 sec)

  1. platforms/core-configuration/configuration-cache/src/test/kotlin/org/gradle/internal/cc/impl/serialization/codecs/CallableCodecTest.kt

    import org.junit.Test
    import java.util.concurrent.Callable
    
    
    class CallableCodecTest : AbstractFunctionalTypeTest() {
    
        @Test
        fun `defers evaluation of Callable objects`() {
            assertDeferredEvaluationOf(callable()) {
                call()
            }
        }
    
        @Test
        fun `defers evaluation of dynamic Callable fields`() {
            assertDeferredEvaluationOf(BeanOf(callable())) {
                value.call()
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  2. analysis/analysis-api-impl-base/tests/org/jetbrains/kotlin/analysis/api/impl/base/test/cases/components/scopeProvider/AbstractTypeScopeTest.kt

            val callables = typeScope.getCallableSignatures().toList()
            return prettyPrint {
                callables.forEach {
                    appendLine(stringRepresentation(it))
                }
            }
        }
    
        private fun KaSession.prettyPrintForTests(typeScope: KaTypeScope): String {
            val callables = typeScope.getCallableSignatures().toList()
            return prettyPrint {
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 29 17:43:55 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/WrappingScheduledExecutorServiceTest.java

        public TestExecutor(MockExecutor mock) {
          super(mock);
        }
    
        @Override
        protected <T> Callable<T> wrapTask(Callable<T> callable) {
          return new WrappedCallable<T>(callable);
        }
    
        @Override
        protected Runnable wrapTask(Runnable command) {
          return new WrappedRunnable(command);
        }
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Dec 16 19:54:45 UTC 2020
    - 7.6K bytes
    - Viewed (0)
  4. subprojects/core/src/test/groovy/org/gradle/api/internal/file/copy/PathNotationConverterTest.groovy

            def provider = providerFactory.provider(new Callable<String>() {
                String call() {
                    return "provider/path";
                }
            })
            expect:
            "provider/path" == pathNotationParser.parseNotation(provider);
        }
    
        def "with Callable that throws exception"() {
            Callable callable = new Callable<String>() {
                String call() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 30 16:46:40 UTC 2019
    - 3.7K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/SimpleTimeLimiter.java

      @ParametricNullness
      private <T extends @Nullable Object> T callWithTimeout(
          Callable<T> callable, long timeoutDuration, TimeUnit timeoutUnit, boolean amInterruptible)
          throws Exception {
        checkNotNull(callable);
        checkNotNull(timeoutUnit);
        checkPositiveTimeout(timeoutDuration);
    
        Future<T> future = executor.submit(callable);
    
        try {
          return amInterruptible
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 27 14:21:11 UTC 2023
    - 9.7K bytes
    - Viewed (0)
  6. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/InitScriptApi.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)
  7. android/guava/src/com/google/common/util/concurrent/TimeLimiter.java

       * @throws ExecutionException if {@code callable} throws a checked exception
       * @throws UncheckedExecutionException if {@code callable} throws a {@code RuntimeException}
       * @throws ExecutionError if {@code callable} throws an {@code Error}
       * @since 22.0
       */
      @CanIgnoreReturnValue
      @ParametricNullness
      <T extends @Nullable Object> T callUninterruptiblyWithTimeout(
          Callable<T> callable, long timeoutDuration, TimeUnit timeoutUnit)
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 12 18:32:03 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  8. subprojects/core/src/test/groovy/org/gradle/api/internal/DefaultMutationGuardTest.groovy

        def "does not throw exception when calling a disallowed method when allowed using #methodUnderTest(#callableClass.type)"() {
            def callable = callableClass.newInstance(this)
    
            when:
            ensureExecuted(guard."${methodUnderTest}"(callable))
    
            then:
            noExceptionThrown()
            callable.called
    
            where:
            methodUnderTest        | callableClass
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 04 22:26:51 UTC 2021
    - 6.2K bytes
    - Viewed (0)
  9. tests/test_dependency_class.py

    client = TestClient(app)
    
    
    @pytest.mark.parametrize(
        "route,value",
        [
            ("/callable-dependency", "callable-dependency"),
            ("/callable-gen-dependency", "callable-gen-dependency"),
            ("/async-callable-dependency", "async-callable-dependency"),
            ("/async-callable-gen-dependency", "async-callable-gen-dependency"),
            ("/synchronous-method-dependency", "synchronous-method-dependency"),
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sun Aug 09 10:54:05 UTC 2020
    - 3.3K bytes
    - Viewed (0)
  10. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/KotlinScript.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.
         */
        fun file(path: Any): File
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 12.3K bytes
    - Viewed (0)
Back to top