Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 686 for closeFn (0.1 sec)

  1. 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)
  2. staging/src/k8s.io/apimachinery/pkg/util/wait/poll.go

    // poller returns a WaitFunc that will send to the channel every interval until
    // timeout has elapsed and then closes the channel.
    //
    // Over very short intervals you may receive no ticks before the channel is
    // closed. A timeout of 0 is interpreted as an infinity, and in such a case
    // it would be the caller's responsibility to close the done channel.
    // Failure to do so would result in a leaked goroutine.
    //
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 26 06:13:35 UTC 2023
    - 14K bytes
    - Viewed (0)
  3. src/database/sql/driver/driver.go

    // used by multiple goroutines concurrently.
    type Stmt interface {
    	// Close closes the statement.
    	//
    	// As of Go 1.1, a Stmt will not be closed if it's in use
    	// by any queries.
    	//
    	// Drivers must ensure all network calls made by Close
    	// do not block indefinitely (e.g. apply a timeout).
    	Close() error
    
    	// NumInput returns the number of placeholder parameters.
    	//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 23 09:04:12 UTC 2023
    - 20.9K bytes
    - Viewed (0)
  4. src/runtime/chan.go

    	if c == nil {
    		panic(plainError("close of nil channel"))
    	}
    
    	lock(&c.lock)
    	if c.closed != 0 {
    		unlock(&c.lock)
    		panic(plainError("close of closed channel"))
    	}
    
    	if raceenabled {
    		callerpc := getcallerpc()
    		racewritepc(c.raceaddr(), callerpc, abi.FuncPCABIInternal(closechan))
    		racerelease(c.raceaddr())
    	}
    
    	c.closed = 1
    
    	var glist gList
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:50 UTC 2024
    - 25.9K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/ContiguousSet.java

       * (inclusive) to {@code upper} (inclusive). (These are the same values contained in {@code
       * Range.closed(lower, upper)}.)
       *
       * @throws IllegalArgumentException if {@code lower} is greater than {@code upper}
       * @since 23.0
       */
      public static ContiguousSet<Integer> closed(int lower, int upper) {
        return create(Range.closed(lower, upper), DiscreteDomain.integers());
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 9.9K bytes
    - Viewed (0)
  6. src/net/http/transfer.go

    	mu         sync.Mutex // guards following, and calls to Read and Close
    	sawEOF     bool
    	closed     bool
    	earlyClose bool   // Close called and we didn't read to the end of src
    	onHitEOF   func() // if non-nil, func to call when EOF is Read
    }
    
    // ErrBodyReadAfterClose is returned when reading a [Request] or [Response]
    // Body after the body has been closed. This typically happens when the body is
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 22:14:00 UTC 2024
    - 31.1K bytes
    - Viewed (0)
  7. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheFlowScopeIntegrationTest.groovy

                    private Boolean closed = false
    
                    void setColor(String color) {
                        assert !closed
                        println('(' + color + ')')
                    }
    
                    @Override
                    void close() {
                        println '(closed)'
                        closed = true
                    }
                }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  8. pkg/volume/csi/csi_client.go

    	nodeClient csipbv1.NodeClient,
    	closer io.Closer,
    	err error,
    )
    
    type nodeV1AccessModeMapper func(am api.PersistentVolumeAccessMode) csipbv1.VolumeCapability_AccessMode_Mode
    
    // newV1NodeClient creates a new NodeClient with the internally used gRPC
    // connection set up. It also returns a closer which must be called to close
    // the gRPC connection when the NodeClient is not used anymore.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 20 10:15:36 UTC 2022
    - 22.1K bytes
    - Viewed (0)
  9. subprojects/core/src/main/java/org/gradle/internal/xml/SimpleMarkupWriter.java

     *
     * <p>This class also is-a {@link Writer}, and any characters written to this writer will be encoded as appropriate. Note, however, that
     * calling {@link #close()} on this object does not close the backing stream.
     * </p>
     */
    public class SimpleMarkupWriter extends Writer {
        private static final String LINE_SEPARATOR = SystemProperties.getInstance().getLineSeparator();
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Nov 02 12:15:58 UTC 2021
    - 12K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/io/CharSourceTest.java

      }
    
      public void testCopyToAppendable_doesNotCloseIfWriter() throws IOException {
        TestWriter writer = new TestWriter();
        assertFalse(writer.closed());
        source.copyTo(writer);
        assertFalse(writer.closed());
      }
    
      public void testClosesOnErrors_copyingToCharSinkThatThrows() {
        for (TestOption option : EnumSet.of(OPEN_THROWS, WRITE_THROWS, CLOSE_THROWS)) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue May 07 15:26:58 UTC 2024
    - 10.5K bytes
    - Viewed (0)
Back to top