Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 111 - 120 of 1,307 for Callable (0.16 seconds)

  1. .teamcity/scripts/CheckBadMerge.java

                .filter(s -> !s.isEmpty())
                .collect(Collectors.toList());
        }
    
        private static Future<String> readStreamAsync(InputStream inputStream) {
            return THREAD_POOL.submit((Callable<String>) () -> readFully(inputStream));
        }
    
        private static String readFully(InputStream inputStream) throws IOException {
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Mon Mar 30 16:25:09 GMT 2026
    - 9K bytes
    - Click Count (0)
  2. docs/en/docs/tutorial/security/first-steps.md

    ///
    
    The `oauth2_scheme` variable is an instance of `OAuth2PasswordBearer`, but it is also a "callable".
    
    It could be called as:
    
    ```Python
    oauth2_scheme(some, parameters)
    ```
    
    So, it can be used with `Depends`.
    
    ### Use it { #use-it }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Mar 07 09:29:03 GMT 2026
    - 8.3K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/cache/CacheStats.java

    import static java.lang.Math.max;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.base.MoreObjects;
    import java.util.Objects;
    import java.util.concurrent.Callable;
    import org.jspecify.annotations.Nullable;
    
    /**
     * Statistics about the performance of a {@link Cache}. Instances of this class are immutable.
     *
     * <p>Cache statistics are incremented according to the following rules:
     *
     * <ul>
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Jul 08 18:32:10 GMT 2025
    - 12.6K bytes
    - Click Count (0)
  4. guava/src/com/google/common/cache/CacheStats.java

    import static java.lang.Math.max;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.base.MoreObjects;
    import java.util.Objects;
    import java.util.concurrent.Callable;
    import org.jspecify.annotations.Nullable;
    
    /**
     * Statistics about the performance of a {@link Cache}. Instances of this class are immutable.
     *
     * <p>Cache statistics are incremented according to the following rules:
     *
     * <ul>
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Jul 08 18:32:10 GMT 2025
    - 12.6K bytes
    - Click Count (0)
  5. docs/ko/docs/tutorial/security/first-steps.md

    이는 OpenAPI 스펙에서 사용하는 이름과 동일하게 맞춘 것이기 때문입니다. 그래서 이런 보안 스킴에 대해 더 조사해야 할 때, 그대로 복사해서 붙여 넣어 더 많은 정보를 찾을 수 있습니다.
    
    ///
    
    `oauth2_scheme` 변수는 `OAuth2PasswordBearer`의 인스턴스이지만, "callable"이기도 합니다.
    
    다음처럼 호출될 수 있습니다:
    
    ```Python
    oauth2_scheme(some, parameters)
    ```
    
    따라서 `Depends`와 함께 사용할 수 있습니다.
    
    ### 사용하기 { #use-it }
    
    이제 `Depends`로 `oauth2_scheme`를 의존성에 전달할 수 있습니다.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:06:26 GMT 2026
    - 9.6K bytes
    - Click Count (0)
  6. src/test/java/jcifs/internal/smb2/create/CreateContextResponseTest.java

                byte[] actualName = response.getName();
                assertEquals(null, actualName);
            }
    
            @Test
            @DisplayName("decode() method should be callable")
            void testDecodeMethod() throws SMBProtocolDecodingException {
                CreateContextResponse response = mock(CreateContextResponse.class);
                byte[] buffer = new byte[100];
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 16.2K bytes
    - Click Count (0)
  7. docs/zh-hant/docs/tutorial/security/first-steps.md

    /// info
    
    如果你是非常嚴格的「Pythonista」,可能不喜歡參數名稱用 `tokenUrl` 而不是 `token_url`。
    
    那是因為它沿用了 OpenAPI 規格中的名稱。如此一來,若你要深入查閱這些安全方案,便能直接複製貼上去搜尋更多資訊。
    
    ///
    
    變數 `oauth2_scheme` 是 `OAuth2PasswordBearer` 的實例,但同時它也是「可呼叫的」(callable)。
    
    它可以這樣被呼叫:
    
    ```Python
    oauth2_scheme(some, parameters)
    ```
    
    因此它可以配合 `Depends` 使用。
    
    ### 如何使用 { #use-it }
    
    現在你可以在相依性中傳入 `oauth2_scheme` 與 `Depends` 搭配。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 7.2K bytes
    - Click Count (0)
  8. guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/LocalCache.java

      private final @Nullable CacheLoader<? super K, V> loader;
      private final @Nullable RemovalListener<? super K, ? super V> removalListener;
      private final StatsCounter statsCounter;
      private final Ticker ticker;
      private final long expireAfterWrite;
      private final long expireAfterAccess;
    
      LocalCache(
          CacheBuilder<? super K, ? super V> builder, @Nullable CacheLoader<? super K, V> loader) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 03 12:40:22 GMT 2026
    - 21.6K bytes
    - Click Count (0)
  9. src/test/java/jcifs/internal/smb2/create/CreateContextRequestTest.java

                byte[] actualName = request.getName();
                assertNull(actualName);
            }
    
            @Test
            @DisplayName("encode() method should be callable")
            void testEncodeMethod() {
                CreateContextRequest request = mock(CreateContextRequest.class);
                byte[] buffer = new byte[100];
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 24.9K bytes
    - Click Count (0)
  10. android/guava-tests/test/com/google/common/graph/ValueGraphTest.java

                     * we read one of the fields declared in that class.
                     */
                    Set<Integer> unused = graph.successors(first);
                    return null; // so the lambda is a Callable to propagate checked await() exceptions
                  }));
        }
    
        // For more about this test, see the equivalent in AbstractNetworkTest.
        for (Future<?> future : futures.build()) {
          future.get();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 19:26:39 GMT 2026
    - 17.9K bytes
    - Click Count (0)
Back to Top