- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for isWrite (0.21 sec)
-
src/crypto/tls/tls_test.go
close(connClosed) return nil } inWrite := make(chan bool, 1) var errConnClosed = errors.New("conn closed for test") conn.writeFunc = func(p []byte) (n int, err error) { inWrite <- true <-connClosed return 0, errConnClosed } closeReturned := make(chan bool, 1) go func() { <-inWrite tconn.Close() // test that this doesn't block forever. closeReturned <- true
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:10:12 UTC 2024 - 60.5K bytes - Viewed (0) -
src/math/all_test.go
x = f(x) } GlobalF = x } func BenchmarkSqrtGoLatency(b *testing.B) { x := 10.0 for i := 0; i < b.N; i++ { x = SqrtGo(x) } GlobalF = x } func isPrime(i int) bool { // Yes, this is a dumb way to write this code, // but calling Sqrt repeatedly in this way demonstrates // the benefit of using a direct SQRT instruction on systems
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jul 07 17:39:26 UTC 2023 - 86.8K bytes - Viewed (0)