- Sort Score
- Num 10 results
- Language All
Results 41 - 50 of 254 for returningT2 (0.18 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
android/guava-tests/test/com/google/common/util/concurrent/WrappingExecutorServiceTest.java
assertThat(f.get()).isEqualTo(RESULT_VALUE); } { MockExecutor mock = new MockExecutor(); TestExecutor testExecutor = new TestExecutor(mock); Callable<String> task = Callables.returning(RESULT_VALUE); Future<String> f = testExecutor.submit(task); mock.assertLastMethodCalled("submit"); assertThat(f.get()).isEqualTo(RESULT_VALUE); } }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 10.1K bytes - Click Count (0) -
docs/en/docs/advanced/additional-status-codes.md
It will use the default status code or the one you set in your *path operation*. ## Additional status codes { #additional-status-codes_1 } If you want to return additional status codes apart from the main one, you can do that by returning a `Response` directly, like a `JSONResponse`, and set the additional status code directly.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 2K bytes - Click Count (0) -
android/guava/src/com/google/common/graph/StandardNetwork.java
* directed graphs, and an arbitrary endpoint of the edge on undirected graphs. * * <p>Collection-returning accessors return unmodifiable views: the view returned will reflect * changes to the graph (if the graph is mutable) but may not be modified by the user. * * <p>The time complexity of all collection-returning accessors is O(1), since views are returned. * * @author James Sexton * @author Joshua O'Madadhain
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Apr 02 14:49:41 GMT 2026 - 6.9K bytes - Click Count (0) -
android/guava/src/com/google/common/util/concurrent/AsyncFunction.java
* Future} need not be {@linkplain Future#isDone done}, making {@code AsyncFunction} suitable for * asynchronous derivations. * * <p>Throwing an exception from this method is equivalent to returning a failing {@code Future}. */ ListenableFuture<O> apply(@ParametricNullness I input) throws Exception;Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 1.5K bytes - Click Count (0) -
fastapi/.agents/skills/fastapi/references/streaming.md
@app.get("/image", response_class=PNGStreamingResponse) def stream_image_no_async_no_annotation(): with read_image() as image_file: yield from image_file ``` prefer this over returning a `StreamingResponse` directly: ```python # DO NOT DO THIS import anyio from fastapi import FastAPI from fastapi.responses import StreamingResponse from app.utils import read_image app = FastAPI()
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Mar 01 10:05:57 GMT 2026 - 2.5K bytes - Click Count (0) -
guava-tests/test/com/google/common/math/QuantilesAlgorithmTest.java
import java.util.Random; import junit.framework.TestCase; import org.jspecify.annotations.NullUnmarked; /** * Tests that the different algorithms benchmarked in {@link QuantilesBenchmark} are actually all * returning more-or-less the same answers. */ @NullUnmarked @GwtIncompatible @J2ktIncompatible public class QuantilesAlgorithmTest extends TestCase { private static final Random rng = new Random(82674067L);Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 03 05:21:26 GMT 2026 - 3.7K bytes - Click Count (0) -
build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/release/GitWrapper.java
*/ public void updateTags(String remote) { runCommand("git", "fetch", "--tags", Objects.requireNonNull(remote)); } /** * Fetch all tags matching the specified pattern, returning them as {@link QualifiedVersion} instances. * @param pattern the tag pattern to match * @return matching versions */ public Stream<QualifiedVersion> listVersions(String pattern) {Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Wed Sep 01 06:25:29 GMT 2021 - 3K bytes - Click Count (0) -
tests/update_test.go
// only sqlite, postgres, gaussdb, sqlserver support returning func TestUpdateReturning(t *testing.T) { if DB.Dialector.Name() != "sqlite" && DB.Dialector.Name() != "postgres" && DB.Dialector.Name() != "gaussdb" && DB.Dialector.Name() != "sqlserver" { return } users := []*User{ GetUser("update-returning-1", Config{}), GetUser("update-returning-2", Config{}), GetUser("update-returning-3", Config{}), } DB.Create(&users)
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Mon Jul 21 02:46:58 GMT 2025 - 30.4K bytes - Click Count (0) -
src/bufio/bufio.go
// not enough data in buffer n = avail err = b.readErr() if err == nil { err = ErrBufferFull } } return b.buf[b.r : b.r+n], err } // Discard skips the next n bytes, returning the number of bytes discarded. // // If Discard skips fewer than n bytes, it also returns an error. // If 0 <= n <= b.Buffered(), Discard is guaranteed to succeed without // reading from the underlying io.Reader.
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Fri Feb 06 17:28:40 GMT 2026 - 22K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb1/com/SmbComSeekResponse.java
import jcifs.internal.smb1.ServerMessageBlock; import jcifs.internal.util.SMBUtil; /** * SMB1 Seek command response implementation. * Handles server responses to file seek operations, returning the new file * position after a seek request in SMB1 protocol file operations. * * @author mbechler */ public class SmbComSeekResponse extends ServerMessageBlock { private long offset; /**Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 2.8K bytes - Click Count (0)