Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 555 for closeFn (0.23 sec)

  1. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/service/DefaultServiceRegistryTest.groovy

            registry.getAll(String)
            registry.close()
    
            when:
            registry.get(String)
    
            then:
            IllegalStateException e = thrown()
            e.message == "TestRegistry has been closed."
    
            when:
            registry.getAll(String)
    
            then:
            e = thrown()
            e.message == "TestRegistry has been closed."
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 27 12:53:25 UTC 2024
    - 59.8K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. src/net/http/serve_test.go

    			}
    			t.Cleanup(func() { bresp.Body.Close() })
    
    			// Try to cause a race. Canceling the client request will cause the client
    			// transport to close req2.Body. Returning from the server handler will
    			// cause the server to close req.Body. Since they are the same underlying
    			// ReadCloser, that will result in concurrent calls to Close (and possibly a
    			// Read concurrent with a Close).
    			if mode == http2Mode {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 202K bytes
    - Viewed (0)
  5. src/net/http/server.go

    	listenerGroup sync.WaitGroup
    }
    
    // Close immediately closes all active net.Listeners and any
    // connections in state [StateNew], [StateActive], or [StateIdle]. For a
    // graceful shutdown, use [Server.Shutdown].
    //
    // Close does not attempt to close (and does not even know about)
    // any hijacked connections, such as WebSockets.
    //
    // Close returns any error returned from closing the [Server]'s
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 123.4K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Writer.kt

      }
    
      @Throws(IOException::class)
      fun flush() {
        this.withLock {
          if (closed) throw IOException("closed")
          sink.flush()
        }
      }
    
      @Throws(IOException::class)
      fun rstStream(
        streamId: Int,
        errorCode: ErrorCode,
      ) {
        this.withLock {
          if (closed) throw IOException("closed")
          require(errorCode.httpCode != -1)
    
          frameHeader(
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  7. subprojects/core/src/test/groovy/org/gradle/internal/service/scopes/DefaultGradleUserHomeScopeServiceRegistryTest.groovy

            homeDirServices.release(services1)
    
            then:
            !homeDir2Service.closed
            !homeDir1Service.closed
    
            when:
            homeDirServices.release(services2)
    
            then:
            homeDir2Service.closed
            !homeDir1Service.closed
        }
    
        def "closes services when registry closed"() {
            def dir = new File("home-dir")
    
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 27 12:34:44 UTC 2024
    - 8K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apimachinery/pkg/watch/watch.go

    type Interface interface {
    	// Stop tells the producer that the consumer is done watching, so the
    	// producer should stop sending events and close the result channel. The
    	// consumer should keep watching for events until the result channel is
    	// closed.
    	//
    	// Because some implementations may create channels when constructed, Stop
    	// must always be called, even if the consumer has not yet called
    	// ResultChan().
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 20:06:22 UTC 2024
    - 8.1K bytes
    - Viewed (1)
  9. okhttp/src/test/java/okhttp3/ResponseBodyJvmTest.kt

                @Throws(IOException::class)
                override fun close() {
                  closed.set(true)
                  super.close()
                }
              }.buffer()
            }
          }
        body.charStream().close()
        assertThat(closed.get()).isTrue()
      }
    
      @Test
      fun readerClosedAfterBomClosesUnderlyingSource() {
        val closed = AtomicBoolean()
        val body: ResponseBody =
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon May 13 13:42:37 UTC 2024
    - 13K bytes
    - Viewed (0)
  10. src/net/http/clientserver_test.go

    			t.Fatal(err)
    		}
    		defer c.Close()
    		fmt.Fprintln(c, "some bogus crap")
    	}))
    
    	closes := 0
    	res, err := cst.c.Post(cst.ts.URL, "text/plain", countCloseReader{&closes, strings.NewReader("hello")})
    	if err == nil {
    		res.Body.Close()
    		t.Fatal("expected an error to be returned from Post")
    	}
    	if closes != 1 {
    		t.Errorf("closes = %d; want 1", closes)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 46.6K bytes
    - Viewed (0)
Back to top