Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 1,957 for closeFn (0.13 sec)

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

    }
    
    // Close all the readers.
    func closeBitrotReaders(rs []io.ReaderAt) {
    	for _, r := range rs {
    		if r != nil {
    			if br, ok := r.(io.Closer); ok {
    				br.Close()
    			}
    		}
    	}
    }
    
    // Close all the writers.
    func closeBitrotWriters(ws []io.Writer) {
    	for _, w := range ws {
    		if w != nil {
    			if bw, ok := w.(io.Closer); ok {
    				bw.Close()
    			}
    		}
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jan 30 20:43:25 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  3. src/main/webapp/js/admin/plugins/form-validator/toggleDisabled.js

    ed")}).find("*[data-validation]").valAttr("event","keyup change").on("validation",function(b,c){if(!f){f=!0;var g=a(this).closest("form");c&&d(g,this,h)?e(g,"enabled"):e(g,"disabled"),f=!1}}).on("afterValidation",k).on("blur",function(){a(this).valAttr("have-been-blurred",1)}).each(function(){var b=a(this),c=b.attr("data-validation");c.indexOf("checkbox_group")>-1&&b.closest("form").find('input[name="'+b.attr("name")+'"]').each(function(){a(this).on("change",function(){b.validate()})})}),i.find(...
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Mon Jan 01 05:12:47 UTC 2018
    - 2.1K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/Call.kt

       *
       * To avoid leaking resources callers should close the [Response] which in turn will close the
       * underlying [ResponseBody].
       *
       * ```java
       * // ensure the response (and underlying response body) is closed
       * try (Response response = client.newCall(request).execute()) {
       *   ...
       * }
       * ```
       *
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Wed Dec 20 23:27:07 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. src/runtime/chan_test.go

    			}
    		}
    
    		{
    			// Ensure that close unblocks receive.
    			c := make(chan int, chanCap)
    			done := make(chan bool)
    			go func() {
    				v, ok := <-c
    				done <- v == 0 && ok == false
    			}()
    			time.Sleep(time.Millisecond)
    			close(c)
    			if !<-done {
    				t.Fatalf("chan[%d]: received non zero from closed chan", chanCap)
    			}
    		}
    
    		{
    			// Send 100 integers,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 31 20:47:35 UTC 2023
    - 23.4K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/SimpleTimeLimiterTest.java

        Stopwatch stopwatch = Stopwatch.createStarted();
    
        String result = proxy.sleepThenReturnInput("x");
    
        assertThat(result).isEqualTo("x");
        assertThat(stopwatch.elapsed(MILLISECONDS)).isIn(Range.closed(DELAY_MS, ENOUGH_MS));
        assertThat(target.finished).isTrue();
      }
    
      public void testNewProxy_goodMethodWithNotEnoughTime() throws Exception {
        SampleImpl target = new SampleImpl(9999);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 9.5K bytes
    - Viewed (0)
  10. pkg/test/echo/client.go

    		return nil, err
    	}
    	client := proto.NewEchoTestServiceClient(conn)
    
    	return &Client{
    		conn:   conn,
    		client: client,
    	}, nil
    }
    
    // Close the EchoClient and free any resources.
    func (c *Client) Close() error {
    	if c.conn != nil {
    		return c.conn.Close()
    	}
    	return nil
    }
    
    func (c *Client) Echo(ctx context.Context, request *proto.EchoRequest) (Response, error) {
    	resp, err := c.client.Echo(ctx, request)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Nov 14 20:23:34 UTC 2022
    - 4.1K bytes
    - Viewed (0)
Back to top