Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for Callable (0.24 sec)

  1. android/guava/src/com/google/common/util/concurrent/ClosingFuture.java

         * @param <U> the type returned by the function
         */
        public interface ClosingFunction5<
            V1 extends @Nullable Object,
            V2 extends @Nullable Object,
            V3 extends @Nullable Object,
            V4 extends @Nullable Object,
            V5 extends @Nullable Object,
            U extends @Nullable Object> {
          /**
           * Applies this function to five inputs, or throws an exception if unable to do so.
           *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 98.5K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

      }
    
      public void testSubmit_callable_returnsValue() throws Exception {
        Callable<Integer> callable =
            new Callable<Integer>() {
              @Override
              public Integer call() {
                return 42;
              }
            };
        ListenableFuture<Integer> future = submit(callable, directExecutor());
        assertThat(future.isDone()).isTrue();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 144.5K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

      }
    
      public void testSubmit_callable_returnsValue() throws Exception {
        Callable<Integer> callable =
            new Callable<Integer>() {
              @Override
              public Integer call() {
                return 42;
              }
            };
        ListenableFuture<Integer> future = submit(callable, directExecutor());
        assertThat(future.isDone()).isTrue();
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 144.5K bytes
    - Viewed (0)
  4. fastapi/routing.py

            if response_fields:
                self.response_fields: Dict[Union[int, str], ModelField] = response_fields
            else:
                self.response_fields = {}
    
            assert callable(endpoint), "An endpoint must be a callable"
            self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
            for depends in self.dependencies[::-1]:
                self.dependant.dependencies.insert(
                    0,
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 170.1K bytes
    - Viewed (0)
  5. fastapi/applications.py

                ),
            ] = State()
            self.dependency_overrides: Annotated[
                Dict[Callable[..., Any], Callable[..., Any]],
                Doc(
                    """
                    A dictionary with overrides for the dependencies.
    
                    Each key is the original dependency callable, and the value is the
                    actual dependency that should be called.
    
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 172.2K bytes
    - Viewed (0)
  6. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/diagnostics/KtFirDataClassConverters.kt

                firDiagnostic as KtPsiDiagnostic,
                token,
            )
        }
        add(FirErrors.CALLABLE_REFERENCE_LHS_NOT_A_CLASS) { firDiagnostic ->
            CallableReferenceLhsNotAClassImpl(
                firDiagnostic as KtPsiDiagnostic,
                token,
            )
        }
        add(FirErrors.CALLABLE_REFERENCE_TO_ANNOTATION_CONSTRUCTOR) { firDiagnostic ->
            CallableReferenceToAnnotationConstructorImpl(
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Wed Apr 24 09:49:26 GMT 2024
    - 208.3K bytes
    - Viewed (0)
  7. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/diagnostics/KtFirDiagnostics.kt

            override val diagnosticClass get() = CannotInferVisibility::class
            val callable: KtCallableSymbol
        }
    
        interface CannotInferVisibilityWarning : KtFirDiagnostic<KtDeclaration> {
            override val diagnosticClass get() = CannotInferVisibilityWarning::class
            val callable: KtCallableSymbol
        }
    
        interface MultipleDefaultsInheritedFromSupertypes : KtFirDiagnostic<KtElement> {
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Wed Apr 24 09:49:26 GMT 2024
    - 171.1K bytes
    - Viewed (0)
  8. guava/src/com/google/common/cache/LocalCache.java

          } finally {
            statsCounter.recordMisses(1);
          }
        }
    
        @CheckForNull
        V compute(
            K key,
            int hash,
            BiFunction<? super K, ? super @Nullable V, ? extends @Nullable V> function) {
          ReferenceEntry<K, V> e;
          ValueReference<K, V> valueReference = null;
          ComputingValueReference<K, V> computingValueReference = null;
          boolean createNewEntry = true;
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 150.3K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/cache/LocalCache.java

    import java.util.ArrayList;
    import java.util.Collection;
    import java.util.Iterator;
    import java.util.Map;
    import java.util.NoSuchElementException;
    import java.util.Queue;
    import java.util.Set;
    import java.util.concurrent.Callable;
    import java.util.concurrent.ConcurrentLinkedQueue;
    import java.util.concurrent.ConcurrentMap;
    import java.util.concurrent.ExecutionException;
    import java.util.concurrent.TimeUnit;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 144.7K bytes
    - Viewed (0)
  10. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/diagnostics/KtFirDiagnosticsImpl.kt

    internal class CannotInferVisibilityImpl(
        override val callable: KtCallableSymbol,
        firDiagnostic: KtPsiDiagnostic,
        token: KtLifetimeToken,
    ) : KtAbstractFirDiagnostic<KtDeclaration>(firDiagnostic, token), KtFirDiagnostic.CannotInferVisibility
    
    internal class CannotInferVisibilityWarningImpl(
        override val callable: KtCallableSymbol,
        firDiagnostic: KtPsiDiagnostic,
        token: KtLifetimeToken,
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Wed Apr 24 09:49:26 GMT 2024
    - 225.2K bytes
    - Viewed (0)
Back to top