Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 1,957 for closeFn (0.2 sec)

  1. src/internal/xcoff/file.go

    // If the File was created using NewFile directly instead of Open,
    // 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
    }
    
    // Section returns the first section with the given name, or nil if no such
    // section exists.
    // Xcoff have section's name limited to 8 bytes. Some sections like .gosymtab
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 12 14:42:29 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  2. pkg/queue/util.go

    func WaitForClose(q Instance, timeout time.Duration) error {
    	closed := q.Closed()
    	if timeout == 0 {
    		<-closed
    		return nil
    	}
    	timer := time.NewTimer(timeout)
    	defer timer.Stop()
    	select {
    	case <-closed:
    		return nil
    	case <-timer.C:
    		return fmt.Errorf("timeout waiting for queue to close after %v", timeout)
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jul 14 06:36:32 UTC 2022
    - 1.1K bytes
    - Viewed (0)
  3. platforms/core-runtime/client-services/src/test/groovy/org/gradle/internal/daemon/client/clientinput/DaemonClientInputForwarderTest.groovy

            then:
            !receivedCommand()
        }
    
        def "stream being closed without sending anything just sends close input command"() {
            when:
            forwarder.stop()
    
            then:
            receiveClosed()
        }
    
        def cleanup() {
            source.close()
            inputStream.close()
            forwarder.stop()
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 12:11:05 UTC 2024
    - 5K bytes
    - Viewed (0)
  4. platforms/core-runtime/daemon-services/src/test/groovy/org/gradle/internal/daemon/clientinput/StdInStreamTest.groovy

        }
    
        def "read byte returns when stream is closed"() {
            def dispatch = Mock(OutputEventListener)
            def stream = new StdInStream(dispatch)
    
            when:
            async {
                start {
                    def b1 = stream.read()
                    assert b1 == -1
                }
                thread.blockUntil.requested
                stream.close()
            }
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 19:51:37 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/Response.kt

      fun receivedResponseAtMillis(): Long = receivedResponseAtMillis
    
      /**
       * Closes the response body. Equivalent to `body().close()`.
       *
       * Prior to OkHttp 5.0, it was an error to close a response that is not eligible for a body. This
       * includes the responses returned from [cacheResponse], [networkResponse], and [priorResponse].
       */
      override fun close() = commonClose()
    
      override fun toString(): String = commonToString()
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Tue Jan 23 14:31:42 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  6. src/go/internal/gccgoimporter/importer.go

    // This is intended to replicate the logic in gofrontend.
    func openExportFile(fpath string) (reader io.ReadSeeker, closer io.Closer, err error) {
    	f, err := os.Open(fpath)
    	if err != nil {
    		return
    	}
    	closer = f
    	defer func() {
    		if err != nil && closer != nil {
    			f.Close()
    		}
    	}()
    
    	var magic [4]byte
    	_, err = f.ReadAt(magic[:], 0)
    	if err != nil {
    		return
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 20 18:41:18 UTC 2020
    - 6.8K bytes
    - Viewed (0)
  7. .github/stale.yml

    # Number of days of inactivity before an Issue or Pull Request becomes stale
    daysUntilStale: 30
    
    # Number of days of inactivity before an Issue or Pull Request with the stale label is closed.
    # Set to false to disable. If disabled, issues still need to be closed manually, but will remain marked as stale.
    daysUntilClose: 15
    
    # Only issues or pull requests with all of these labels are check if stale. Defaults to `[]` (disabled)
    onlyLabels: []
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jan 24 04:36:59 UTC 2022
    - 2K bytes
    - Viewed (0)
  8. src/cmd/cgo/internal/testcarchive/testdata/libgo2/libgo2.go

    	int fds[2];
    
    	if (pipe(fds) == -1) {
    		perror("pipe");
    		exit(EXIT_FAILURE);
    	}
    	// Close the reader end
    	close(fds[0]);
    	// Write to the writer end to provoke a SIGPIPE
    	if (write(fds[1], "some data", 9) != -1) {
    		fprintf(stderr, "write to a closed pipe succeeded\n");
    		exit(EXIT_FAILURE);
    	}
    	close(fds[1]);
    }
    */
    import "C"
    
    import (
    	"fmt"
    	"os"
    	"runtime"
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/server/secure_serving.go

    		go func() {
    			select {
    			case <-stopCh:
    				cancel() // stopCh closed, so cancel our context
    			case <-ctx.Done():
    			}
    		}()
    		// start controllers if possible
    		if controller, ok := s.ClientCA.(dynamiccertificates.ControllerRunner); ok {
    			// runonce to try to prime data.  If this fails, it's ok because we fail closed.
    			// Files are required to be populated already, so this is for convenience.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 12 20:54:07 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  10. platforms/core-runtime/io/src/test/groovy/org/gradle/internal/io/LinePerThreadBufferingOutputStreamTest.groovy

            TextStream action = Mock()
            def outstr = new LinePerThreadBufferingOutputStream(action)
    
            when:
            outstr.write("text".bytes)
            outstr.close()
    
            then:
            1 * action.text("text")
    
            when:
            outstr.write("text".bytes)
            outstr.close()
    
            then:
            1 * action.text("text")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 12 08:51:13 UTC 2024
    - 3K bytes
    - Viewed (0)
Back to top