- Sort Score
- Result 10 results
- Languages All
Results 141 - 150 of 1,957 for closeFn (0.28 sec)
-
src/os/stat_test.go
t.Parallel() f, err := os.Open("testdata/hello") if err != nil { t.Fatal(err) } if err := f.Close(); err != nil { t.Fatal(err) } _, err = f.Stat() if err == nil { t.Error("Stat succeeded on closed File") } else if !errors.Is(err, os.ErrClosed) { t.Errorf("error from Stat on closed file did not match ErrClosed: %q, type %T", err, err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 22:38:03 UTC 2024 - 7.8K bytes - Viewed (0) -
cmd/erasure-decode.go
case errors.Is(err, errDiskNotFound): atomic.AddInt32(&disksNotFound, 1) } // This will be communicated upstream. p.orgReaders[bufIdx] = nil if br, ok := p.readers[i].(io.Closer); ok { br.Close() } p.readers[i] = nil // Since ReadAt returned error, trigger another read. readTriggerCh <- true return } newBufLK.Lock()
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Tue May 21 14:36:21 UTC 2024 - 9.4K bytes - Viewed (0) -
pkg/test/framework/components/echo/kube/instance.go
func (c *instance) Clusters() cluster.Clusters { return cluster.Clusters{c.cluster} } func (c *instance) Instances() echo.Instances { return echo.Instances{c} } func (c *instance) Close() (err error) { return c.workloadMgr.Close() } func (c *instance) NamespacedName() echo.NamespacedName { return c.cfg.NamespacedName() } func (c *instance) PortForName(name string) echo.Port {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Feb 16 18:55:23 UTC 2023 - 9K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbPipeOutputStream.java
} /** * @return the handle */ protected SmbPipeHandleImpl getHandle () { return this.handle; } @Override public void close () { // ignore, the shared file descriptor is closed by the pipe handle }
Registered: Wed Jun 12 15:45:55 UTC 2024 - Last Modified: Sun Jul 01 13:12:10 UTC 2018 - 1.9K bytes - Viewed (0) -
pkg/ctrlz/assets/static/js/bootstrap-4.0.0.min.js
ype:e.end,handle:function(e){if(t(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}}),i}(e),L=(a="alert",h="."+(l="bs.alert"),c=(o=e).fn[a],u={CLOSE:"close"+h,CLOSED:"closed"+h,CLICK_DATA_API:"click"+h+".data-api"},f="alert",d="fade",_="show",g=function(){function t(t){this._element=t}var e=t.prototype;return e.close=function(t){t=t||this._element;var e=this._getRootElement(t);this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e)},e.dispose=function(){o.remov...
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 23 17:08:31 UTC 2023 - 47.8K bytes - Viewed (0) -
cmd/untar.go
// the upstream reader after close has been called. type disconnectReader struct { r io.Reader mu sync.Mutex } func (d *disconnectReader) Read(p []byte) (n int, err error) { d.mu.Lock() defer d.mu.Unlock() if d.r != nil { return d.r.Read(p) } return 0, errors.New("reader closed") } func (d *disconnectReader) Close() error { d.mu.Lock() d.r = nil
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu Apr 04 12:04:40 UTC 2024 - 6K bytes - Viewed (0) -
src/net/http/httputil/reverseproxy_test.go
} if !closeCheck.closed { t.Errorf("body should have been closed") } if g, e := logBuf.String(), outErr.Error(); !strings.Contains(g, e) { t.Errorf("ErrorLog %q does not contain %q", g, e) } } type checkCloser struct { closed bool } func (cc *checkCloser) Close() error { cc.closed = true return nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 54.6K bytes - Viewed (0) -
staging/src/k8s.io/cli-runtime/pkg/resource/mapper.go
return nil, fmt.Errorf("unable to connect to a server to handle %q: %v", mapping.Resource, err) } ret.Client = client } return ret, nil } // preferredObjectKind picks the possibility that most closely matches the priority list in this order: // GroupVersionKind matches (exact match) // GroupKind matches // Group matches
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jan 03 10:53:18 UTC 2024 - 4.8K bytes - Viewed (0) -
internal/dsync/locker.go
ForceUnlock(ctx context.Context, args LockArgs) (bool, error) // Returns underlying endpoint of this lock client instance. String() string // Close closes any underlying connection to the service endpoint Close() error // Is the underlying connection online? (is always true for any local lockers) IsOnline() bool // Is the underlying locker local to this server? IsLocal() bool
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Tue Jan 18 20:44:38 UTC 2022 - 2.7K bytes - Viewed (0) -
src/net/textproto/textproto.go
func NewConn(conn io.ReadWriteCloser) *Conn { return &Conn{ Reader: Reader{R: bufio.NewReader(conn)}, Writer: Writer{W: bufio.NewWriter(conn)}, conn: conn, } } // Close closes the connection. func (c *Conn) Close() error { return c.conn.Close() } // Dial connects to the given address on the given network using [net.Dial] // and then returns a new [Conn] for the connection. func Dial(network, addr string) (*Conn, error) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 10 03:29:50 UTC 2024 - 3.7K bytes - Viewed (0)