- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 1,912 for Close (0.14 sec)
-
internal/http/close.go
"io" xioutil "github.com/minio/minio/internal/ioutil" ) // DrainBody close non nil response with any response Body. // convenient wrapper to drain any remaining data on response body. // // Subsequently this allows golang http RoundTripper // to reuse the same connection for future requests. func DrainBody(respBody io.ReadCloser) { // Callers should close resp.Body when done reading from it.
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu Jan 18 07:03:17 UTC 2024 - 1.7K bytes - Viewed (0) -
test/float_lit.go
} return false } func main() { if !close(0., 0, 1, 0) { print("0. is ", 0., "\n") } if !close(+10., 10, 1, 0) { print("+10. is ", +10., "\n") } if !close(-210., -210, 1, 0) { print("-210. is ", -210., "\n") } if !close(.0, 0, 1, 0) { print(".0 is ", .0, "\n") } if !close(+.01, 1, 100, 0) { print("+.01 is ", +.01, "\n") } if !close(-.012, -12, 1000, 0) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 12 18:17:49 UTC 2013 - 4K bytes - Viewed (0) -
platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/DefaultFileLockManagerWithNewProtocolTest.groovy
def beforeAccess = lock.state lock.close() and: lock = createLock(lockMode, testFile, lockManager) lock.readFile {} lock.close() when: lock = createLock(lockMode) then: !lock.state.hasBeenUpdatedSince(beforeAccess) cleanup: lock?.close() where: lockMode << [Exclusive, Shared]
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Jan 10 15:52:52 UTC 2024 - 7.4K bytes - Viewed (0) -
src/math/huge_test.go
if !close(-f1, f3) || !close(g1, g3) { t.Errorf("Sincos(%g) = %g, %g, want %g, %g", -trigHuge[i], f3, g3, -f1, g1) } } } func TestHugeTan(t *testing.T) { for i := 0; i < len(trigHuge); i++ { f1 := tanHuge[i] f2 := Tan(trigHuge[i]) if !close(f1, f2) { t.Errorf("Tan(%g) = %g, want %g", trigHuge[i], f2, f1) } f3 := Tan(-trigHuge[i]) if !close(-f1, f3) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jul 31 16:23:41 UTC 2023 - 2.9K bytes - Viewed (0) -
platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/resolveengine/store/DefaultBinaryStoreTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 3.4K bytes - Viewed (0) -
src/net/http/responsewrite_test.go
// HTTP/1.1 response with unknown length and Connection: close { Response{ StatusCode: 200, ProtoMajor: 1, ProtoMinor: 1, Request: dummyReq("GET"), Header: Header{}, Body: io.NopCloser(strings.NewReader("abcdef")), ContentLength: -1, Close: true, }, "HTTP/1.1 200 OK\r\n" + "Connection: close\r\n" + "\r\n" + "abcdef", },
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 07 01:07:32 UTC 2022 - 6.9K bytes - Viewed (0) -
src/net/file_test.go
case "unix", "unixpacket": defer ln1.Close() // UnixListener.Close calls syscall.Unlink internally default: if err := ln1.Close(); err != nil { t.Error(err) } } if err != nil { if perr := parseCommonError(err); perr != nil { t.Error(perr) } t.Fatal(err) } ln2, err := FileListener(f) if err := f.Close(); err != nil { t.Error(err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 18 17:20:52 UTC 2023 - 6.4K bytes - Viewed (0) -
platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/DefaultCacheFactoryTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 16 15:49:51 UTC 2024 - 7.8K bytes - Viewed (0) -
platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/FixedSharedModeCrossProcessCacheAccessTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 16 15:49:51 UTC 2024 - 5.5K bytes - Viewed (0) -
src/os/fifo_test.go
t.Logf("ignoring write error %v", err) rd.Close() wr.Close() continue } t.Fatalf("write to fifo %d failed: %v", i, err) } if _, err := rd.Read(make([]byte, len(msg))); err != nil { if errors.Is(err, syscall.EAGAIN) || errors.Is(err, syscall.ENOBUFS) { t.Logf("ignoring read error %v", err) rd.Close() wr.Close() continue }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 19 11:47:23 UTC 2024 - 6.1K bytes - Viewed (0)