- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 279 for callableId (0.26 sec)
-
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
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Feb 13 14:28:25 UTC 2024 - 5.4K bytes - Viewed (0) -
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; } }; }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 4.2K bytes - Viewed (0) -
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; } }; }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 4.2K bytes - Viewed (0) -
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
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Tue Oct 10 13:38:00 UTC 2023 - 2K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/internal/classpath/InstrumentedGroovyCallsHelper.java
/** * Executes the given {@code callable} in the context of an entry point produced from entering a dynamically dispatched * call described by the {@code callableName} and {@code kind} * from a class identified by {@code consumerClass}. * After running the callable, ensures that the entry point leaves the context and returns the callable's result. */
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Jul 24 15:57:59 UTC 2023 - 1.8K bytes - Viewed (0) -
tensorflow/cc/experimental/libtf/runtime/runtime.cc
std::move(trace), input_signature, output_tensor_spec); } TaggedValue callable = MakeCallable(child_name, tf_function, ctx); module.dict()[TaggedValue(child_name)] = callable; } } return module; } // Instantiate the Runtime, creating relevant Callables for later use. Runtime::Runtime(AbstractContext* ctx) { TaggedValue ctx_capsule =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Sep 01 11:18:25 UTC 2022 - 7.4K bytes - Viewed (0) -
platforms/core-runtime/stdlib-java-extensions/src/main/java/org/gradle/internal/UncheckedException.java
} /** * Calls the given callable converting any thrown exception to an unchecked exception via {@link UncheckedException#throwAsUncheckedException(Throwable)} * * @param callable The callable to call * @param <T> Callable's return type * @return The value returned by {@link Callable#call()} */ @Nullable public static <T> T uncheckedCall(Callable<T> callable) { try {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Jun 10 14:28:48 UTC 2024 - 3.6K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/api/internal/file/archive/AbstractArchiveFileTreeTest.java
for (int i = 0; i < numThreads; i++) { visitors.add(new CountingVisitor()); } // Create callables that will send the visitors to visit the archive List<Callable<List<Long>>> callables = visitors.stream().map(v -> { return new Callable<List<Long>>() { @Override public List<Long> call() { getTree().visit(v);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jul 28 16:17:59 UTC 2023 - 6.5K bytes - Viewed (0) -
platforms/jvm/code-quality/src/main/groovy/org/gradle/api/plugins/quality/CheckstylePlugin.java
taskMapping.map("checkstyleClasspath", Callables.returning(configuration)); taskMapping.map("config", (Callable<TextResource>) () -> extension.getConfig()); taskMapping.map("configProperties", (Callable<Map<String, Object>>) () -> extension.getConfigProperties()); taskMapping.map("showViolations", (Callable<Boolean>) () -> extension.isShowViolations());
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed May 22 08:01:57 UTC 2024 - 6.4K bytes - Viewed (0) -
analysis/analysis-api-impl-base/tests/org/jetbrains/kotlin/analysis/api/impl/base/test/cases/types/AbstractAbbreviatedTypeTest.kt
import org.jetbrains.kotlin.psi.KtFile import org.jetbrains.kotlin.test.services.TestServices /** * Renders the properties and the textual representation of a callable's return type specified via `// callable: ID`. The varying * [TestModuleKind][org.jetbrains.kotlin.analysis.test.framework.test.configurators.TestModuleKind] supplied by generated tests applies to
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Wed May 22 06:28:34 UTC 2024 - 2.2K bytes - Viewed (0)