Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 38 for Closes (0.3 sec)

  1. doc/go1.17_spec.html

    A <code>nil</code> channel is never ready for communication.
    </p>
    
    <p>
    A channel may be closed with the built-in function
    <a href="#Close"><code>close</code></a>.
    The multi-valued assignment form of the
    <a href="#Receive_operator">receive operator</a>
    reports whether a received value was sent before
    the channel was closed.
    </p>
    
    <p>
    A single channel may be used in
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  2. api/go1.13.txt

    pkg syscall (netbsd-arm64-cgo), const EXTB ideal-int
    pkg syscall (netbsd-arm64-cgo), const EXTPROC = 2048
    pkg syscall (netbsd-arm64-cgo), const EXTPROC ideal-int
    pkg syscall (netbsd-arm64-cgo), const F_CLOSEM = 10
    pkg syscall (netbsd-arm64-cgo), const F_CLOSEM ideal-int
    pkg syscall (netbsd-arm64-cgo), const FD_CLOEXEC = 1
    pkg syscall (netbsd-arm64-cgo), const FD_CLOEXEC ideal-int
    pkg syscall (netbsd-arm64-cgo), const FD_SETSIZE = 256
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Aug 08 18:44:16 GMT 2019
    - 452.6K bytes
    - Viewed (0)
  3. src/builtin/builtin.go

    func clear[T ~[]Type | ~map[Type]Type1](t T)
    
    // The close built-in function closes a channel, which must be either
    // bidirectional or send-only. It should be executed only by the sender,
    // never the receiver, and has the effect of shutting down the channel after
    // the last sent value is received. After the last value has been received
    // from a closed channel c, any receive from c will succeed without
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  4. src/archive/tar/writer.go

    	if err != nil && err != ErrWriteTooLong {
    		tw.err = err
    	}
    	return n, err
    }
    
    // Close closes the tar archive by flushing the padding, and writing the footer.
    // If the current file (from a prior call to [Writer.WriteHeader]) is not fully written,
    // then this returns an error.
    func (tw *Writer) Close() error {
    	if tw.err == ErrWriteAfterClose {
    		return nil
    	}
    	if tw.err != nil {
    		return tw.err
    	}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 19.6K bytes
    - Viewed (0)
  5. src/archive/zip/reader.go

    	dcomp := r.decompressors[method]
    	if dcomp == nil {
    		dcomp = decompressor(method)
    	}
    	return dcomp
    }
    
    // Close closes the Zip file, rendering it unusable for I/O.
    func (rc *ReadCloser) Close() error {
    	return rc.f.Close()
    }
    
    // DataOffset returns the offset of the file's possibly-compressed
    // data, relative to the beginning of the zip file.
    //
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 27.7K bytes
    - Viewed (0)
  6. doc/go_spec.html

    A <code>nil</code> channel is never ready for communication.
    </p>
    
    <p>
    A channel may be closed with the built-in function
    <a href="#Close"><code>close</code></a>.
    The multi-valued assignment form of the
    <a href="#Receive_operator">receive operator</a>
    reports whether a received value was sent before
    the channel was closed.
    </p>
    
    <p>
    A single channel may be used in
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Apr 26 00:39:16 GMT 2024
    - 279.6K bytes
    - Viewed (0)
  7. api/go1.1.txt

    pkg syscall (linux-386), const IN_CLASSC_NSHIFT = 8
    pkg syscall (linux-386), const IN_CLOEXEC = 524288
    pkg syscall (linux-386), const IN_CLOSE = 24
    pkg syscall (linux-386), const IN_CLOSE_NOWRITE = 16
    pkg syscall (linux-386), const IN_CLOSE_WRITE = 8
    pkg syscall (linux-386), const IN_CREATE = 256
    pkg syscall (linux-386), const IN_DELETE = 512
    pkg syscall (linux-386), const IN_DELETE_SELF = 1024
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Mar 31 20:37:15 GMT 2022
    - 2.6M bytes
    - Viewed (0)
  8. src/archive/zip/writer_test.go

    			}
    			continue
    		} else {
    			if !test.ok {
    				t.Fatalf("SetComment: unexpected success, want error")
    			}
    		}
    
    		if err := w.Close(); test.ok == (err != nil) {
    			t.Fatal(err)
    		}
    
    		if w.closed != test.ok {
    			t.Fatalf("Writer.closed: got %v, want %v", w.closed, test.ok)
    		}
    
    		// skip read test in failure cases
    		if !test.ok {
    			continue
    		}
    
    		// read it back
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Sep 15 19:04:06 GMT 2023
    - 14.1K bytes
    - Viewed (0)
  9. api/go1.2.txt

    pkg syscall (linux-arm-cgo), const IN_CLASSC_NSHIFT ideal-int
    pkg syscall (linux-arm-cgo), const IN_CLOEXEC ideal-int
    pkg syscall (linux-arm-cgo), const IN_CLOSE ideal-int
    pkg syscall (linux-arm-cgo), const IN_CLOSE_NOWRITE ideal-int
    pkg syscall (linux-arm-cgo), const IN_CLOSE_WRITE ideal-int
    pkg syscall (linux-arm-cgo), const IN_CREATE ideal-int
    pkg syscall (linux-arm-cgo), const IN_DELETE ideal-int
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 18 04:36:59 GMT 2013
    - 1.9M bytes
    - Viewed (2)
  10. src/archive/zip/register.go

    }
    
    type pooledFlateWriter struct {
    	mu sync.Mutex // guards Close and Write
    	fw *flate.Writer
    }
    
    func (w *pooledFlateWriter) Write(p []byte) (n int, err error) {
    	w.mu.Lock()
    	defer w.mu.Unlock()
    	if w.fw == nil {
    		return 0, errors.New("Write after Close")
    	}
    	return w.fw.Write(p)
    }
    
    func (w *pooledFlateWriter) Close() error {
    	w.mu.Lock()
    	defer w.mu.Unlock()
    	var err error
    	if w.fw != nil {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 3.7K bytes
    - Viewed (0)
Back to top