- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 3,889 for close1 (0.12 sec)
-
src/cmd/internal/bio/must.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package bio import ( "io" "log" ) // MustClose closes Closer c and calls log.Fatal if it returns a non-nil error. func MustClose(c io.Closer) { if err := c.Close(); err != nil { log.Fatal(err) } } // MustWriter returns a Writer that wraps the provided Writer,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 14 17:58:33 UTC 2016 - 883 bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java
new ClosingCallable<TestCloseable>() { @Override public TestCloseable call(DeferredCloser closer) throws Exception { closer.eventuallyClose(closeable1, closingExecutor); closer.eventuallyClose(closeable2, closingExecutor); return closeable3; } }, executor)
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue May 07 12:37:15 UTC 2024 - 75.3K bytes - Viewed (0) -
platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/MultiProcessSafeIndexedCacheTest.groovy
1 * backingCache.close() 0 * _._ } def "closes cache when closed"() { given: cacheOpened() when: cache.finishWork() then: 1 * fileAccess.writeFile(!null) >> { Runnable action -> action.run() } 1 * backingCache.close() 0 * _._ }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 16 15:49:50 UTC 2024 - 3.5K bytes - Viewed (0) -
src/io/pipe_test.go
want := tt.err if want == nil { want = EOF } if err != want { t.Errorf("read from closed pipe: %v want %v", err, want) } if n != 0 { t.Errorf("read on closed pipe returned %d", n) } if err = r.Close(); err != nil { t.Errorf("r.Close: %v", err) } } } // Test close on Read side during Read. func TestPipeReadClose2(t *testing.T) { c := make(chan int, 1) r, _ := Pipe()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 9K bytes - Viewed (0) -
src/net/http/serve_test.go
} t.Cleanup(func() { bresp.Body.Close() }) // Try to cause a race. Canceling the client request will cause the client // transport to close req2.Body. Returning from the server handler will // cause the server to close req.Body. Since they are the same underlying // ReadCloser, that will result in concurrent calls to Close (and possibly a // Read concurrent with a Close). if mode == http2Mode {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 17:57:01 UTC 2024 - 202K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/util/internal/DisconnectableInputStream.java
} } /** * Closes this {@code InputStream} for reading. Any threads blocked in read() will receive an end-of-stream. Also requests that the * reader thread stop reading, if possible, but does not block waiting for this to happen. * * <p>NOTE: this method does not close the source input stream.</p> */ @Override public void close() throws IOException { lock.lock();
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Apr 07 08:18:46 UTC 2021 - 6.5K bytes - Viewed (0) -
src/internal/xcoff/ar.go
} arch, err := NewArchive(f) if err != nil { f.Close() return nil, err } arch.closer = f return arch, nil } // Close closes the Archive. // If the Archive was created using NewArchive directly instead of OpenArchive, // Close has no effect. func (a *Archive) Close() error { var err error if a.closer != nil { err = a.closer.Close() a.closer = nil } return err }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 17:32:51 UTC 2024 - 5.6K bytes - Viewed (0) -
src/unique/clone.go
"unsafe" ) // clone makes a copy of value, and may update string values found in value // with a cloned version of those strings. The purpose of explicitly cloning // strings is to avoid accidentally giving a large string a long lifetime. // // Note that this will clone strings in structs and arrays found in value, // and will clone value if it itself is a string. It will not, however, clone
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun May 05 00:24:21 UTC 2024 - 2.6K bytes - Viewed (0) -
src/cmd/go/internal/lockedfile/lockedfile.go
return OpenFile(name, os.O_RDWR|os.O_CREATE, 0666) } // Close unlocks and closes the underlying file. // // Close may be called multiple times; all calls after the first will return a // non-nil error. func (f *File) Close() error { if f.closed { return &fs.PathError{ Op: "close", Path: f.Name(), Err: fs.ErrClosed, } } f.closed = true err := closeFile(f.osFile.File)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 20 18:41:18 UTC 2020 - 5.1K bytes - Viewed (0) -
platforms/core-execution/build-cache/src/main/java/org/gradle/caching/internal/controller/DefaultBuildCacheController.java
local.maybeStore(key, file); }); } @Override public void close() throws IOException { if (!closed) { closed = true; Closer closer = Closer.create(); closer.register(local); closer.register(remote); closer.close(); } } @VisibleForTesting static class PackOperationExecutor {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Feb 08 08:29:47 UTC 2024 - 14K bytes - Viewed (0)