Search Options

Results per page
Sort
Preferred Languages
Advance

Results 221 - 230 of 310 for trong (0.06 sec)

  1. src/bufio/scan_test.go

    			if s.ErrOrEOF() != io.EOF {
    				t.Fatal("not testing EOF")
    			}
    			err = testError
    		}
    		return
    	}
    	s.Split(split)
    	for s.Scan() {
    	}
    	if s.Err() != testError {
    		t.Fatal("wrong error:", s.Err())
    	}
    }
    
    // Test for issue 5268.
    type alwaysError struct{}
    
    func (alwaysError) Read(p []byte) (int, error) {
    	return 0, io.ErrUnexpectedEOF
    }
    
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Fri Sep 22 16:22:42 UTC 2023
    - 14.3K bytes
    - Viewed (0)
  2. docs/zh-hant/docs/async.md

    # 並行與 async / await
    
    有關*路徑操作函式*的 `async def` 語法的細節與非同步 (asynchronous) 程式碼、並行 (concurrency) 與平行 (parallelism) 的一些背景知識。
    
    ## 趕時間嗎?
    
    <abbr title="too long; didn't read(文長慎入)"><strong>TL;DR:</strong></abbr>
    
    如果你正在使用要求你以 `await` 語法呼叫的第三方函式庫,例如:
    
    ```Python
    results = await some_library()
    ```
    
    然後,使用 `async def` 宣告你的*路徑操作函式*:
    
    
    ```Python hl_lines="2"
    @app.get('/')
    async def read_results():
        results = await some_library()
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:56:21 UTC 2025
    - 21.1K bytes
    - Viewed (0)
  3. src/bytes/bytes_test.go

    				ToValidUTF8(test.input, replacement)
    			}
    		})
    	}
    }
    
    func makeBenchInputHard() []byte {
    	tokens := [...]string{
    		"<a>", "<p>", "<b>", "<strong>",
    		"</a>", "</p>", "</b>", "</strong>",
    		"hello", "world",
    	}
    	x := make([]byte, 0, 1<<20)
    	r := rand.New(rand.NewSource(99))
    	for {
    		i := r.Intn(len(tokens))
    		if len(x)+len(tokens[i]) >= 1<<20 {
    			break
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Mon Jul 28 18:13:58 UTC 2025
    - 62.9K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/ImmutableList.java

       * immutable list is returned.)
       *
       * <p><b>Note:</b> in almost all circumstances, the returned {@link ImmutableList} retains a
       * strong reference to {@code this}, which may prevent the original list from being garbage
       * collected. If you want the original list to be eligible for garbage collection, you should
       * create and use a copy of the sub list (e.g., {@code
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 27.5K bytes
    - Viewed (0)
  5. src/cmd/cgo/ast.go

    			continue
    		}
    
    		name := strings.TrimSpace(c.Text[9:])
    		if name == "" {
    			error_(c.Pos(), "export missing name")
    		}
    
    		if name != n.Name.Name {
    			error_(c.Pos(), "export comment has wrong name %q, want %q", name, n.Name.Name)
    		}
    
    		doc := ""
    		for _, c1 := range n.Doc.List {
    			if c1 != c {
    				doc += c1.Text + "\n"
    			}
    		}
    
    		f.ExpFunc = append(f.ExpFunc, &ExpFunc{
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Mon Oct 14 15:47:06 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/util/concurrent/ServiceManager.java

       * the state transitions.
       */
      private static final class ServiceListener extends Service.Listener {
        final Service service;
        // We store the state in a weak reference to ensure that if something went wrong while
        // constructing the ServiceManager we don't pointlessly keep updating the state.
        final WeakReference<ServiceManagerState> state;
    
        ServiceListener(Service service, WeakReference<ServiceManagerState> state) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 33.2K bytes
    - Viewed (0)
  7. src/bufio/bufio_test.go

    			written := w.Bytes()
    			if len(written) != nwrite {
    				t.Errorf("%s: %d bytes written", context, len(written))
    			}
    			for l := 0; l < len(written); l++ {
    				if written[l] != data[l] {
    					t.Errorf("wrong bytes written")
    					t.Errorf("want=%q", data[:len(written)])
    					t.Errorf("have=%q", written)
    				}
    			}
    		}
    	}
    }
    
    func TestWriterAppend(t *testing.T) {
    	got := new(bytes.Buffer)
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Fri Feb 07 01:08:54 UTC 2025
    - 51.6K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/net/MediaType.java

     * are normalized to lowercase. The value of the {@code charset} parameter is normalized to
     * lowercase, but all others are left as-is.
     *
     * <p>Note that this specifically does <strong>not</strong> represent the value of the MIME {@code
     * Content-Type} header and as such has no support for header-specific considerations such as line
     * folding and comments.
     *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 48K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/ServerMessageBlock2Test.java

            @DisplayName("Should throw exception for invalid structure size")
            void testReadErrorResponseInvalidStructureSize() {
                byte[] buffer = new byte[256];
                SMBUtil.writeInt2(8, buffer, 0); // wrong structure size
    
                assertThrows(SMBProtocolDecodingException.class, () -> {
                    testMessage.readErrorResponse(buffer, 0);
                });
            }
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 39.5K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/SmbFile.java

     * to referencing files and directories, jCIFS can also address servers,
     * and workgroups.
     * <p>
     * <strong><i>Important: all SMB URLs that represent
     * workgroups, servers, shares, or directories require a trailing slash '/'.
     * </i></strong>
     * <p>
     * When using the {@code java.net.URL} class with
     * 'smb://' URLs it is necessary to first call the static
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 103.2K bytes
    - Viewed (0)
Back to top