- Sort Score
- Num 10 results
- Language All
Results 871 - 880 of 1,149 for lock (0.17 seconds)
-
docs/en/docs/tutorial/stream-json-lines.md
### Non-async *path operation functions* { #non-async-path-operation-functions } You can also use regular `def` functions (without `async`), and use `yield` the same way. FastAPI will make sure it's run correctly so that it doesn't block the event loop. As in this case the function is not async, the right return type would be `Iterable[Item]`: {* ../../docs_src/stream_json_lines/tutorial001_py310.py ln[27:30] hl[28] *}Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 4.3K bytes - Click Count (0) -
mockwebserver/src/test/java/mockwebserver3/MockResponseSniTest.kt
/* * Copyright (C) 2022 Block, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS,
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Jun 18 12:28:21 GMT 2025 - 6.3K bytes - Click Count (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/Transport.java
import org.apache.maven.api.annotations.Nonnull; /** * Transport for specified remote repository (using provided remote repository base URI as root). Must be treated as a * resource, best in try-with-resource block. * * @since 4.0.0 */ @Experimental @Consumer public interface Transport extends Closeable { /** * GETs the source URI content into target (does not have to exist, or will be overwritten if exist). The
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Thu Mar 23 05:29:39 GMT 2023 - 4.4K bytes - Click Count (0) -
architecture/standards/0008-use-nullaway.md
* Do not use `@Contract` for public APIs. * For polynull public APIs, the solution has to be decided on a case-by-case basis. Do not remove `null` checks on public API boundaries, even if the annotations (or rather lack of them) suggest this. Not all client code is compiled with NullAway. Do not make a parameter `@Nullable` just to check and throw a `NullPointerException` when it is `null`. ## Consequences
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Thu Mar 05 12:39:41 GMT 2026 - 4K bytes - Click Count (0) -
build-logic-commons/code-quality-rules/src/main/resources/checkstyle/checkstyle.xml
<module name="UnusedImports"/> <module name="IllegalImport"> <!-- We shouldn't use jdk.internal types. com.beust and org.testng.collections has classes that look like Guava. --> <property name="illegalPkgs" value="jdk.internal,com.beust,org.testng.collections"/> <!-- We prefer org.jspecify for nullability annotations. -->
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Thu Dec 11 10:24:25 GMT 2025 - 6.6K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/http/ThreadInterruptTest.kt
private lateinit var server: MockWebServer private lateinit var client: OkHttpClient @BeforeEach fun setUp() { // Sockets on some platforms can have large buffers that mean writes do not block when // required. These socket factories explicitly set the buffer sizes on sockets created. server = MockWebServer() server.serverSocketFactory = object : DelegatingServerSocketFactory(getDefault()) {
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Nov 04 18:33:48 GMT 2025 - 6.4K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/EvictingQueue.java
* * <p>An evicting queue must be configured with a maximum size. Each time an element is added to a * full queue, the queue automatically removes its head element. This is different from conventional * bounded queues, which either block or reject new elements when full. * * <p>This class is not thread-safe, and does not accept null elements. * * @author Kurt Alfred Kluever * @since 15.0 */ @GwtCompatible
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Feb 13 17:34:21 GMT 2025 - 4.6K bytes - Click Count (0) -
src/test/java/jcifs/pac/PacTest.java
// Test with mocked PacMac to avoid complex signature calculation try (MockedStatic<PacMac> pacMacMock = mockStatic(PacMac.class)) { // Mock the calculateMac method to return a valid checksum byte[] mockChecksum = new byte[16]; pacMacMock.when(() -> PacMac.calculateMac(anyInt(), any(), any())).thenReturn(mockChecksum);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 7.9K bytes - Click Count (0) -
internal/handlers/proxy.go
// match should contain at least two elements if the protocol was // specified in the Forwarded header. The first element will always be // the 'for=', which we ignore, subsequently we proceed to look for // 'proto=' which should precede right after `for=` if not // we simply ignore the values and return empty. This is in line // with the approach we took for returning first ip from multiple // params.
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Wed Feb 26 19:25:49 GMT 2025 - 5.4K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/helper/RoleQueryHelperTest.java
@Override protected long getCurrentTime() { return System.currentTimeMillis(); } }; roleQueryHelper.init(); // Mock request with cached USER_ROLES Set<String> cachedRoles = new HashSet<>(); cachedRoles.add("cached_role"); getMockRequest().setAttribute("userRoles", cachedRoles);Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 28.8K bytes - Click Count (0)