- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 3,889 for close1 (0.21 sec)
-
subprojects/core/src/test/groovy/org/gradle/internal/xml/SimpleXmlWriterSpec.groovy
then: sw.toString().contains("<root>") //is closed with '>' where: action << [{ it.startElement("foo"); it.endElement() }, { it.startCDATA(); it.endCDATA() }, { it.characters("bar") }, { it.write("close") }] } def "closes attributed tags"() { when: writer.startElement("root")
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Nov 02 12:15:58 UTC 2021 - 14.1K bytes - Viewed (0) -
test/fixedbugs/issue15975.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package main var fail bool type Closer interface { Close() } func nilInterfaceDeferCall() { var x Closer defer x.Close() // if it panics when evaluating x.Close, it should not reach here fail = true } func shouldPanic(f func()) { defer func() { if recover() == nil { panic("did not panic")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 08 20:35:53 UTC 2016 - 572 bytes - Viewed (0) -
test/typeparam/chans.go
// This will leave a goroutine running until either both channels are closed // or the context is canceled, at which point the returned channel is closed. func _Merge[Elem any](ctx context.Context, c1, c2 <-chan Elem) <-chan Elem { r := make(chan Elem) go func(ctx context.Context, c1, c2 <-chan Elem, r chan<- Elem) { defer close(r) for c1 != nil || c2 != nil { select { case <-ctx.Done(): return
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 8.4K bytes - Viewed (0) -
platforms/core-runtime/messaging/src/test/groovy/org/gradle/internal/remote/internal/inet/TcpConnectorTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:59:22 UTC 2023 - 10.4K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/util/proxy/streamtranslator_test.go
errorChan <- exec.StreamWithContext(context.Background(), *options) }() select { case <-time.After(wait.ForeverTestTimeout): t.Fatalf("expect stream to be closed after connection is closed.") case err := <-errorChan: if err != nil { t.Errorf("unexpected error: %v", err) } } data, err := io.ReadAll(bytes.NewReader(stdout.Bytes())) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Feb 27 23:21:55 UTC 2024 - 36.4K bytes - Viewed (0) -
src/internal/poll/fd_unix.go
} // Close closes the FD. The underlying file descriptor is closed by the // destroy method when there are no remaining references. func (fd *FD) Close() error { if !fd.fdmu.increfAndClose() { return errClosing(fd.isFile) } // Unblock any I/O. Once it all unblocks and returns, // so that it cannot be referring to fd.sysfd anymore, // the final decref will close fd.sysfd. This should happen
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 31 04:09:44 UTC 2024 - 17.9K bytes - Viewed (0) -
platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/AbstractFileLockManagerTest.groovy
thrown(IllegalStateException) } def "can close a lock multiple times"() { given: def lock = createLock(Exclusive) lock.close() expect: lock.close() } def "cannot read from file after lock has been closed"() { given: def lock = createLock(Exclusive) lock.close() when: lock.readFile({} as Supplier)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 16 15:49:51 UTC 2024 - 13.6K bytes - Viewed (0) -
platforms/core-runtime/base-services/src/main/java/org/gradle/internal/classloader/TransformReplacer.java
} @Override public void close() { if (closed) { // Already closed. return; } closed = true; for (Loader value : loaders.values()) { IoActions.closeQuietly(value); } } private void ensureOpened() { if (closed) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Jun 11 09:51:15 UTC 2024 - 12.7K bytes - Viewed (0) -
internal/rest/client.go
return } // ErrClientClosed returned when *Client is closed. var ErrClientClosed = errors.New("rest client is closed") // Call - make a REST call with context. func (c *Client) Call(ctx context.Context, method string, values url.Values, body io.Reader, length int64) (reply io.ReadCloser, err error) { switch atomic.LoadInt32(&c.connected) { case closed: // client closed, this is usually a manual process
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 14.4K bytes - Viewed (0) -
src/debug/pe/file.go
// Close has no effect. func (f *File) Close() error { var err error if f.closer != nil { err = f.closer.Close() f.closer = nil } return err } // TODO(brainman): add Load function, as a replacement for NewFile, that does not call removeAuxSymbols (for performance) // NewFile creates a new [File] for accessing a PE binary in an underlying reader.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 18 19:33:30 UTC 2023 - 17.2K bytes - Viewed (0)