Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 421 - 430 of 658 for iterable (0.22 seconds)

  1. docs/ja/docs/tutorial/server-sent-events.md

    ///
    
    ### 非 async の *path operation 関数* { #non-async-path-operation-functions }
    
    通常の `def` 関数(`async` なし)も使用でき、同様に `yield` を使えます。
    
    イベントループをブロックしないよう、FastAPI が正しく実行されるように調整します。
    
    この場合は関数が async ではないため、適切な戻り値の型は `Iterable[Item]` です:
    
    {* ../../docs_src/server_sent_events/tutorial001_py310.py ln[28:31] hl[29] *}
    
    ### 戻り値の型なし { #no-return-type }
    
    戻り値の型を省略することもできます。FastAPI は [`jsonable_encoder`](./encoder.md) を使ってデータを変換し、送信します。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:55:22 GMT 2026
    - 5.8K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/cache/EmptyCachesTest.java

      /** Most of the tests in this class run against every one of these caches. */
      private Iterable<LoadingCache<Object, Object>> caches() {
        // lots of different ways to configure a LoadingCache
        CacheBuilderFactory factory = cacheFactory();
        return Iterables.transform(
            factory.buildAllPermutations(), builder -> builder.build(identityLoader()));
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 11.6K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/reflect/TypeTokenResolutionTest.java

      }
    
      private interface StringIterable extends Iterable<String> {}
    
      public void testResolveType() {
        assertEquals(String.class, TypeToken.of(this.getClass()).resolveType(String.class).getType());
        assertEquals(
            String.class,
            TypeToken.of(StringIterable.class)
                .resolveType(Iterable.class.getTypeParameters()[0])
                .getType());
        assertEquals(
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 19.6K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/reflect/TypeTokenResolutionTest.java

      }
    
      private interface StringIterable extends Iterable<String> {}
    
      public void testResolveType() {
        assertEquals(String.class, TypeToken.of(this.getClass()).resolveType(String.class).getType());
        assertEquals(
            String.class,
            TypeToken.of(StringIterable.class)
                .resolveType(Iterable.class.getTypeParameters()[0])
                .getType());
        assertEquals(
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 19.6K bytes
    - Click Count (0)
  5. docs/zh-hant/docs/tutorial/stream-json-lines.md

    ///
    
    ### 非 async 的*路徑操作函式* { #non-async-path-operation-functions }
    
    你也可以用一般的 `def` 函式(沒有 `async`),同樣用 `yield`。
    
    FastAPI 會確保正確執行,不會阻塞事件迴圈。
    
    因為這種情況下函式不是 async,正確的回傳型別會是 `Iterable[Item]`:
    
    {* ../../docs_src/stream_json_lines/tutorial001_py310.py ln[27:30] hl[28] *}
    
    ### 不宣告回傳型別 { #no-return-type }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:33:04 GMT 2026
    - 4.2K bytes
    - Click Count (0)
  6. guava/src/com/google/common/collect/ImmutableSet.java

        return fromArrayWithExpectedSize(array, expectedSize);
      }
    
      /**
       * Returns an immutable set containing each of {@code elements}, minus duplicates, in the order
       * each appears first in the source iterable. This method iterates over {@code elements} only
       * once.
       *
       * <p><b>Performance note:</b> This method will sometimes recognize that the actual copy operation
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Nov 07 16:09:47 GMT 2025
    - 35.3K bytes
    - Click Count (0)
  7. android/guava-tests/test/com/google/common/cache/CacheLoadingTest.java

              @Override
              public Object load(Object key) throws Exception {
                return new Object();
              }
    
              @Override
              public Map<Object, Object> loadAll(Iterable<?> keys) throws Exception {
                Map<Object, Object> result = new HashMap<>();
                for (Object key : keys) {
                  Object value = new Object();
                  result.put(key, value);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 91K bytes
    - Click Count (0)
  8. android/guava-tests/test/com/google/common/math/StatsAccumulatorTest.java

        // For datasets of many double values created from an iterable, we test many combinations of
        // finite and non-finite values:
        for (ManyValues values : ALL_MANY_VALUES) {
          StatsAccumulator accumulator = new StatsAccumulator();
          StatsAccumulator accumulatorByAddAllStats = new StatsAccumulator();
          accumulator.addAll(values.asIterable());
          for (double value : values.asIterable()) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 03 05:21:26 GMT 2026
    - 37.1K bytes
    - Click Count (0)
  9. android/guava-tests/test/com/google/common/collect/TableCollectionTest.java

                    new TestStringSetGenerator() {
                      @Override
                      protected Set<String> create(String[] elements) {
                        Iterable<String> rowKeys = ImmutableSet.copyOf(elements);
                        Iterable<Integer> columnKeys = ImmutableList.of(1, 2, 3);
                        Table<String, Integer, Character> table =
                            ArrayTable.create(rowKeys, columnKeys);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 35.5K bytes
    - Click Count (0)
  10. guava-tests/test/com/google/common/collect/TableCollectionTest.java

                    new TestStringSetGenerator() {
                      @Override
                      protected Set<String> create(String[] elements) {
                        Iterable<String> rowKeys = ImmutableSet.copyOf(elements);
                        Iterable<Integer> columnKeys = ImmutableList.of(1, 2, 3);
                        Table<String, Integer, Character> table =
                            ArrayTable.create(rowKeys, columnKeys);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 35.5K bytes
    - Click Count (0)
Back to Top