Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 1,595 for closedc (2.68 sec)

  1. 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)
  2. cmd/metacache-stream.go

    				continue
    			}
    		}
    	}()
    
    	return objs, nil
    }
    
    // Close and release resources.
    func (w *metacacheWriter) Close() error {
    	if w == nil || w.closer == nil {
    		return nil
    	}
    	w.streamWg.Wait()
    	err := w.closer()
    	w.closer = nil
    	return err
    }
    
    // Reset and start writing to new writer.
    // Close must have been called before this.
    func (w *metacacheWriter) Reset(out io.Writer) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Apr 04 12:04:40 UTC 2024
    - 19.5K bytes
    - Viewed (0)
  3. src/internal/fuzz/sys_posix.go

    	return &sharedMem{f: f, region: region, removeOnClose: removeOnClose}, nil
    }
    
    // Close unmaps the shared memory and closes the temporary file. If this
    // sharedMem was created with sharedMemTempFile, Close also removes the file.
    func (m *sharedMem) Close() error {
    	// Attempt all operations, even if we get an error for an earlier operation.
    	// os.File.Close may fail due to I/O errors, but we still want to delete
    	// the temporary file.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 12 19:47:40 UTC 2022
    - 4.1K bytes
    - Viewed (0)
  4. subprojects/diagnostics/src/main/resources/org/gradle/api/tasks/diagnostics/htmldependencyreport/script.js

            }
    
            $.each(project.configurations, function(index, configuration) {
                var $configurationDiv = $('<div/>').addClass('configuration');
                var $configurationTitle = $('<h3/>').addClass('closed').append($('<ins/>')).append(configuration.name);
                if (configuration.description) {
                    $configurationTitle.append(' - ').append($('<span/>').addClass('configurationDescription').text(configuration.description));
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 24 19:38:03 UTC 2020
    - 8.2K bytes
    - Viewed (0)
  5. src/net/http/transport.go

    	if err == nil {
    		panic("nil error")
    	}
    	pc.broken = true
    	if pc.closed == nil {
    		pc.closed = err
    		pc.t.decConnsPerHost(pc.cacheKey)
    		// Close HTTP/1 (pc.alt == nil) connection.
    		// HTTP/2 closes its connection itself.
    		if pc.alt == nil {
    			if err != errCallerOwnsConn {
    				pc.conn.Close()
    			}
    			close(pc.closech)
    		}
    	}
    	pc.mutateHeaderFunc = nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 91K bytes
    - Viewed (0)
  6. src/net/http/transport_internal_test.go

    		t.Errorf("roundTrip = %#v, %v; want errServerClosedIdle, transportReadFromServerError, or nothingWrittenError", err, err)
    	}
    
    	<-pc.closech
    	err = pc.closed
    	if !isNothingWrittenError(err) && !isTransportReadFromServerError(err) && err != errServerClosedIdle {
    		t.Errorf("pc.closed = %#v, %v; want errServerClosedIdle or transportReadFromServerError, or nothingWrittenError", err, err)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 15:57:17 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  7. src/net/rpc/client_test.go

    	codec := &shutdownCodec{responded: make(chan int)}
    	client := NewClientWithCodec(codec)
    	<-codec.responded
    	client.Close()
    	if !codec.closed {
    		t.Error("client.Close did not close codec")
    	}
    }
    
    // Test that errors in gob shut down the connection. Issue 7689.
    
    type R struct {
    	msg []byte // Not exported, so R does not work with gob.
    }
    
    type S struct{}
    
    func (s *S) Recv(nul *struct{}, reply *R) error {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 1.7K bytes
    - Viewed (0)
  8. test/typeparam/chansimp.dir/a.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: Wed Jul 28 21:40:40 UTC 2021
    - 5.5K bytes
    - Viewed (0)
  9. src/runtime/os_wasm.go

    //
    //go:nowritebarrier
    func newosproc(mp *m) {
    	throw("newosproc: not implemented")
    }
    
    //go:linkname os_sigpipe os.sigpipe
    func os_sigpipe() {
    	throw("too many writes on closed pipe")
    }
    
    //go:linkname syscall_now syscall.now
    func syscall_now() (sec int64, nsec int32) {
    	sec, nsec, _ = time_now()
    	return
    }
    
    //go:nosplit
    func cputicks() int64 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/cache/DiskLruCache.kt

          if (civilizedFileSystem) return fileSource
    
          lockingSourceCount++
          return object : ForwardingSource(fileSource) {
            private var closed = false
    
            override fun close() {
              super.close()
              if (!closed) {
                closed = true
                synchronized(this@DiskLruCache) {
                  lockingSourceCount--
                  if (lockingSourceCount == 0 && zombie) {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 34.7K bytes
    - Viewed (0)
Back to top