- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 1,059 for Callable (0.24 sec)
-
android/guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java
List<Callable<T>> tasks = ImmutableList.of(); List<? extends Future<?>> unused = executor.invokeAll(tasks); } public void testListeningDecorator() throws Exception { ListeningExecutorService service = listeningDecorator(newDirectExecutorService()); assertSame(service, listeningDecorator(service)); List<Callable<String>> callables = ImmutableList.of(Callables.returning("x"));
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 28.2K bytes - Viewed (0) -
analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/references/KDocReferenceResolver.kt
fun create(packageParts: List<Name>, classParts: List<Name>, callable: Name?): FqNameInterpretation { val packageName = FqName.fromSegments(packageParts.map { it.asString() }) val relativeClassName = FqName.fromSegments(classParts.map { it.asString() }) return when { classParts.isEmpty() && callable == null -> FqNameInterpretationAsPackage(packageName)
Plain Text - Registered: Fri Apr 26 08:18:10 GMT 2024 - Last Modified: Fri Apr 19 11:06:47 GMT 2024 - 22.6K bytes - Viewed (0) -
fastapi/param_functions.py
The parameter is available only for compatibility. """ ), ] = ..., *, default_factory: Annotated[ Union[Callable[[], Any], None], Doc( """ A callable to generate the default value. This doesn't affect `Path` parameters as the value is always required. The parameter is available only for compatibility.
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:40:57 GMT 2024 - 62.5K bytes - Viewed (0) -
fastapi/params.py
import warnings from enum import Enum from typing import Any, Callable, Dict, List, Optional, Sequence, Union from fastapi.openapi.models import Example from pydantic.fields import FieldInfo from typing_extensions import Annotated, deprecated from ._compat import PYDANTIC_V2, PYDANTIC_VERSION, Undefined _Unset: Any = Undefined class ParamTypes(Enum): query = "query" header = "header" path = "path"
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:40:57 GMT 2024 - 27.5K bytes - Viewed (1) -
android/guava/src/com/google/common/util/concurrent/MoreExecutors.java
return new WrappingExecutorService(service) { @Override protected <T extends @Nullable Object> Callable<T> wrapTask(Callable<T> callable) { return Callables.threadRenaming(callable, nameSupplier); } @Override protected Runnable wrapTask(Runnable command) { return Callables.threadRenaming(command, nameSupplier); } }; } /**
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Apr 17 16:33:44 GMT 2024 - 41.8K bytes - Viewed (0) -
guava-testlib/test/com/google/common/util/concurrent/testing/TestingExecutorsTest.java
taskDone = false; Callable<Integer> task = new Callable<Integer>() { @Override public Integer call() { taskDone = true; return 6; } }; Future<Integer> future = TestingExecutors.sameThreadScheduledExecutor().schedule(task, 10000, TimeUnit.MILLISECONDS); assertTrue("Should run callable immediately", taskDone);
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 3.7K bytes - Viewed (0) -
src/main/java/jcifs/SmbWatchHandle.java
*/ package jcifs; import java.util.List; import java.util.concurrent.Callable; /** * Handle for receiving change notifications from an SMB server * * * @author mbechler * */ public interface SmbWatchHandle extends AutoCloseable, Callable<List<FileNotifyInformation>> { /** * Get the next set of changes *
Java - Registered: Sun May 05 00:10:10 GMT 2024 - Last Modified: Sun Jul 01 13:12:10 GMT 2018 - 2.3K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/WrappingScheduledExecutorService.java
import java.util.concurrent.Callable; import java.util.concurrent.ScheduledExecutorService; import java.util.concurrent.ScheduledFuture; import java.util.concurrent.TimeUnit; import org.checkerframework.checker.nullness.qual.Nullable; /** * An abstract {@code ScheduledExecutorService} that allows subclasses to {@linkplain * #wrapTask(Callable) wrap} tasks before they are submitted to the underlying executor. *
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Tue Apr 04 09:45:04 GMT 2023 - 2.4K bytes - Viewed (0) -
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);
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Tue Mar 17 20:45:59 GMT 2020 - 6.1K bytes - Viewed (0) -
fastapi/dependencies/utils.py
def is_coroutine_callable(call: Callable[..., Any]) -> bool: if inspect.isroutine(call): return inspect.iscoroutinefunction(call) if inspect.isclass(call): return False dunder_call = getattr(call, "__call__", None) # noqa: B004 return inspect.iscoroutinefunction(dunder_call) def is_async_gen_callable(call: Callable[..., Any]) -> bool:
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Apr 02 02:52:56 GMT 2024 - 29.5K bytes - Viewed (0)