Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 93 for Callables (0.91 sec)

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

          Callable<T> callable, ListeningExecutorService listeningExecutorService) {
        checkNotNull(callable);
        checkNotNull(listeningExecutorService);
        return () -> listeningExecutorService.submit(callable);
      }
    
      /**
       * Wraps the given callable such that for the duration of {@link Callable#call} the thread that is
       * running will have the given name.
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 18:32:03 GMT 2023
    - 4.4K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/CallablesTest.java

      public void testReturning() throws Exception {
        assertNull(Callables.returning(null).call());
    
        Object value = new Object();
        Callable<Object> callable = Callables.returning(value);
        assertSame(value, callable.call());
        // Expect the same value on subsequent calls
        assertSame(value, callable.call());
      }
    
      @J2ktIncompatible
      @GwtIncompatible
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/CallablesTest.java

      public void testReturning() throws Exception {
        assertNull(Callables.returning(null).call());
    
        Object value = new Object();
        Callable<Object> callable = Callables.returning(value);
        assertSame(value, callable.call());
        // Expect the same value on subsequent calls
        assertSame(value, callable.call());
      }
    
      @J2ktIncompatible
      @GwtIncompatible
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/FakeTimeLimiterTest.java

                        runnableThrowing(exception), DELAY_MS, TimeUnit.MILLISECONDS));
        assertThat(e.getCause()).isEqualTo(exception);
      }
    
      public static <T> Callable<T> callableThrowing(final Exception exception) {
        return new Callable<T>() {
          @Override
          public T call() throws Exception {
            throw exception;
          }
        };
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 4.2K bytes
    - Viewed (0)
  5. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/scopes/DeclarationsInPackageProvider.kt

    import org.jetbrains.kotlin.name.Name
    import org.jetbrains.kotlin.platform.jvm.isJvm
    
    /**
     * Provides top-level names for classifiers and callables in given packages. Apart from names found in sources and binaries,
     * [DeclarationsInPackageProvider] also collects names for classifiers and callables generated by
     * [FirDeclarationGenerationExtension][org.jetbrains.kotlin.fir.extensions.FirDeclarationGenerationExtension]s.
     *
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Tue Apr 23 10:55:55 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/FakeTimeLimiterTest.java

                        runnableThrowing(exception), DELAY_MS, TimeUnit.MILLISECONDS));
        assertThat(e.getCause()).isEqualTo(exception);
      }
    
      public static <T> Callable<T> callableThrowing(final Exception exception) {
        return new Callable<T>() {
          @Override
          public T call() throws Exception {
            throw exception;
          }
        };
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 4.2K bytes
    - Viewed (0)
  7. analysis/analysis-api-fe10/tests-gen/org/jetbrains/kotlin/analysis/api/fe10/test/cases/generated/cases/components/scopeProvider/Fe10IdeNormalAnalysisSourceModulePackageScopeTestGenerated.java

      }
    
      @Test
      @TestMetadata("callables.kt")
      public void testCallables() {
        runTest("analysis/analysis-api/testData/components/scopeProvider/packageScope/callables.kt");
      }
    
      @Test
      @TestMetadata("classes.kt")
      public void testClasses() {
    Java
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Tue Apr 23 10:55:55 GMT 2024
    - 3.3K bytes
    - Viewed (0)
  8. .idea/dictionaries/geevee.xml

    <component name="ProjectDictionaryState">
      <dictionary name="geevee">
        <words>
          <w>builtins</w>
          <w>callables</w>
          <w>klass</w>
          <w>proto</w>
          <w>protoc</w>
          <w>protos</w>
          <w>ubuntu</w>
        </words>
      </dictionary>
    XML
    - Registered: Fri May 03 08:18:13 GMT 2024
    - Last Modified: Wed Jul 08 11:27:39 GMT 2015
    - 267 bytes
    - Viewed (0)
  9. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/scopes/FirCallableFilteringScope.kt

                baseScope.processAllCallables { callable ->
                    if (isTargetCallable(callable)) {
                        add(callable.name)
                    }
                }
            }
        }
    
        override fun getCallableNames(): Set<Name> = cachedCallableNames
    
        override fun processFunctionsByName(name: Name, processor: (FirNamedFunctionSymbol) -> Unit) {
            if (!cachedCallableNames.contains(name)) return
    
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Tue Oct 10 13:38:00 GMT 2023
    - 2K bytes
    - Viewed (0)
  10. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/scopes/FirNonStaticMembersScope.kt

     * non-static scopes.
     */
    internal class FirNonStaticMembersScope(
        private val delegate: FirContainingNamesAwareScope,
    ) : FirCallableFilteringScope(delegate) {
        override fun isTargetCallable(callable: FirCallableSymbol<*>): Boolean = !callable.fir.isStatic
    
        override fun processDeclaredConstructors(processor: (FirConstructorSymbol) -> Unit) {
            delegate.processDeclaredConstructors(processor)
        }
    
    Plain Text
    - Registered: Fri Mar 22 08:18:09 GMT 2024
    - Last Modified: Tue Oct 10 13:38:00 GMT 2023
    - 2.4K bytes
    - Viewed (0)
Back to top