- Sort Score
- Num 10 results
- Language All
Results 81 - 90 of 159 for Callables (0.18 seconds)
-
docs_src/custom_request_and_route/tutorial001_an_py310.py
import gzip from collections.abc import Callable from typing import Annotated from fastapi import Body, FastAPI, Request, Response from fastapi.routing import APIRoute class GzipRequest(Request): async def body(self) -> bytes: if not hasattr(self, "_body"): body = await super().body() if "gzip" in self.headers.getlist("Content-Encoding"): body = gzip.decompress(body)
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Dec 10 08:55:32 GMT 2025 - 1015 bytes - Click Count (0) -
android/guava/src/com/google/common/cache/AbstractLoadingCache.java
import com.google.common.util.concurrent.UncheckedExecutionException; import com.google.errorprone.annotations.CanIgnoreReturnValue; import java.util.LinkedHashMap; import java.util.Map; import java.util.concurrent.Callable; import java.util.concurrent.ExecutionException; /** * This class provides a skeletal implementation of the {@code Cache} interface to minimize the * effort required to implement this interface. *Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 03 12:40:22 GMT 2026 - 2.8K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/SimpleTimeLimiterTest.java
private static final long NOT_ENOUGH_MS = 5; private static final String GOOD_CALLABLE_RESULT = "good callable result"; private static final Callable<String> GOOD_CALLABLE = () -> { MILLISECONDS.sleep(DELAY_MS); return GOOD_CALLABLE_RESULT; }; private static final Callable<String> BAD_CALLABLE = () -> { MILLISECONDS.sleep(DELAY_MS); throw new SampleException();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 9.4K bytes - Click Count (0) -
fastapi/applications.py
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Apr 01 16:16:24 GMT 2026 - 178.6K bytes - Click Count (0) -
docs/en/docs/advanced/advanced-dependencies.md
But we want to be able to parameterize that fixed content. ## A "callable" instance { #a-callable-instance } In Python there's a way to make an instance of a class a "callable". Not the class itself (which is already a callable), but an instance of that class. To do that, we declare a method `__call__`:Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 9K bytes - Click Count (0) -
android/guava/src/com/google/common/cache/ForwardingCache.java
import com.google.common.base.Preconditions; import com.google.common.collect.ForwardingObject; import com.google.common.collect.ImmutableMap; import java.util.Map; import java.util.concurrent.Callable; import java.util.concurrent.ConcurrentMap; import java.util.concurrent.ExecutionException; import org.jspecify.annotations.Nullable; /**
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 03 12:40:22 GMT 2026 - 3.7K bytes - Click Count (0) -
docs/fr/docs/advanced/advanced-dependencies.md
Mais nous voulons pouvoir paramétrer ce contenu fixe. ## Une instance « callable » { #a-callable-instance } En Python, il existe un moyen de rendre une instance de classe « callable ». Pas la classe elle‑même (qui est déjà un callable), mais une instance de cette classe. Pour cela, nous déclarons une méthode `__call__` :Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:37:13 GMT 2026 - 10.6K bytes - Click Count (0) -
docs/es/docs/advanced/advanced-dependencies.md
Pero queremos poder parametrizar ese contenido fijo. ## Una *instance* "callable" { #a-callable-instance } En Python hay una forma de hacer que una instance de una clase sea un "callable". No la clase en sí (que ya es un callable), sino una instance de esa clase. Para hacer eso, declaramos un método `__call__`:Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:15:55 GMT 2026 - 9.7K bytes - Click Count (0) -
src/test/java/jcifs/SmbWatchHandleTest.java
assertEquals(3, result.size()); verify(watchHandle, times(1)).call(); } /** * Test call() method as Callable in executor service */ @Test void testCallAsCallable() throws Exception { // Create a real implementation for testing Callable behavior SmbWatchHandle realHandle = new SmbWatchHandle() { private int callCount = 0; @Override
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 13.2K bytes - Click Count (1) -
android/guava/src/com/google/common/util/concurrent/ClosingFuture.java
/** * Starts a {@link ClosingFuture} pipeline by submitting a callable block to an executor. * * @throws java.util.concurrent.RejectedExecutionException if the task cannot be scheduled for * execution */ public static <V extends @Nullable Object> ClosingFuture<V> submit( ClosingCallable<V> callable, Executor executor) { checkNotNull(callable); CloseableList closeables = new CloseableList();Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Apr 01 17:27:13 GMT 2026 - 101.7K bytes - Click Count (0)