- Sort Score
- Num 10 results
- Language All
Results 191 - 200 of 1,517 for Take (0.31 seconds)
-
cmd/batch-expire.go
} if i > 0 { if wait := globalBatchConfig.ExpirationWait(); wait > 0 { time.Sleep(wait) } } i++ wk.Take() go func(toExpire []expireObjInfo) { defer wk.Give() toExpireAll := make([]expireObjInfo, 0, len(toExpire)) toDel := make([]ObjectToDelete, 0, len(toExpire)) oiCache := newObjInfoCache() for _, exp := range toExpire { if exp.ExpireAll {Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Tue Apr 22 11:16:32 GMT 2025 - 23K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/Helpers.java
List<?> exp = copyToList(expected); List<?> act = copyToList(actual); String actString = act.toString(); // Of course we could take pains to give the complete description of the // problem on any failure. // Yeah it's n^2. for (Object object : exp) { if (!act.remove(object)) { fail(
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Fri Oct 10 23:13:45 GMT 2025 - 17.2K bytes - Click Count (0) -
guava/src/com/google/common/math/BigIntegerMath.java
} } /** * Returns {@code n} choose {@code k}, also known as the binomial coefficient of {@code n} and * {@code k}, that is, {@code n! / (k! (n - k)!)}. * * <p><b>Warning:</b> the result can take as much as <i>O(k log n)</i> space. * * @throws IllegalArgumentException if {@code n < 0}, {@code k < 0}, or {@code k > n} */ public static BigInteger binomial(int n, int k) { checkNonNegative("n", n);Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 18.8K bytes - Click Count (0) -
cmd/batch-handlers.go
func newBatchJobPool(ctx context.Context, o ObjectLayer, workers int) *BatchJobPool { jpool := &BatchJobPool{ ctx: ctx, objLayer: o, jobCh: make(chan *BatchJobRequest, 10000), workerKillCh: make(chan struct{}, workers), jobCancelers: make(map[string]context.CancelFunc), } jpool.ResizeWorkers(workers) randomWait := func() time.Duration {
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 63.5K bytes - Click Count (1) -
okhttp/src/jvmTest/kotlin/okhttp3/DuplexTest.kt
}, ).build(), ) call.execute().use { response -> assertThat(response.body.string()).isEqualTo("success!") } body.awaitSuccess() assertThat(log.take()!!) .contains("StreamResetException: stream was reset: CANCEL") } /** * We delay sending the last byte of the request body 1500 ms. The 1000 ms read timeout shouldCreated: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Tue Nov 04 19:13:52 GMT 2025 - 25.8K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/WebSocketHttpTest.kt
webSocket: WebSocket, t: Throwable, response: Response?, ): Unit = throw e }, ) newWebSocket() assertThat(testLogHandler.take()).isEqualTo("INFO: [WS client] onFailure") } @Test fun throwingOnMessageClosesImmediatelyAndFails() { webServer.enqueue( MockResponse .Builder()Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Tue Nov 04 19:13:52 GMT 2025 - 35.5K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/InterceptorTest.kt
Request .Builder() .url(server.url("/")) .build() val response = client.newCall(request).execute() assertThat("b").isEqualTo(response.body.string()) } /** Make sure interceptors can interact with the OkHttp client. */ @Test fun interceptorMakesAnUnrelatedRequest() { server.enqueue(MockResponse.Builder().body("a").build()) // Fetched by interceptor.Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Tue Nov 04 16:11:23 GMT 2025 - 28.2K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/create/Smb2CreateRequest.java
*/ public void setShareAccess(final int shareAccess) { this.shareAccess = shareAccess; } /** * Set the create disposition specifying what action to take if file exists or doesn't exist * @param createDisposition the createDisposition to set */ public void setCreateDisposition(final int createDisposition) { this.createDisposition = createDisposition;Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sat Aug 23 02:21:31 GMT 2025 - 22.9K bytes - Click Count (0) -
android/guava/src/com/google/common/base/Verify.java
if (reference == null) { throw new VerifyException(lenientFormat(errorMessageTemplate, errorMessageArgs)); } return reference; } // TODO(kevinb): consider <T> T verifySingleton(Iterable<T>) to take over for // Iterables.getOnlyElement() private Verify() {}
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Mar 17 20:26:29 GMT 2025 - 18.3K bytes - Click Count (0) -
android/guava/src/com/google/common/base/Converter.java
* Given that we declare this method as accepting and returning non-nullable values (because we * implement Function<A, B>, as discussed in a class-level comment), it would make some sense to * perform runtime null checks on the input and output. (That would also make NullPointerTester * happy!) However, since we didn't do that for many years, we're not about to start now.
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Wed Jun 18 21:43:06 GMT 2025 - 22.8K bytes - Click Count (0)