Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 3,889 for close1 (0.19 sec)

  1. src/net/listen_test.go

    	}()
    
    	if ln, err := Listen("tcp", ""); err == nil {
    		ln.Close()
    	}
    	if ln, err := ListenPacket("udp", ""); err == nil {
    		ln.Close()
    	}
    	if ln, err := ListenTCP("tcp", nil); err == nil {
    		ln.Close()
    	}
    	if ln, err := ListenUDP("udp", nil); err == nil {
    		ln.Close()
    	}
    	if ln, err := ListenIP("ip:icmp", nil); err == nil {
    		ln.Close()
    	}
    }
    
    var ipv4MulticastListenerTests = []struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 20.5K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/io/CloseablesTest.java

        Closeables.closeQuietly(in);
        assertTrue(in.closed());
      }
    
      public void testCloseQuietly_readerWithEatenException() throws IOException {
        TestReader in = new TestReader(TestOption.CLOSE_THROWS);
        Closeables.closeQuietly(in);
        assertTrue(in.closed());
      }
    
      public void testCloseNull() throws IOException {
        Closeables.close(null, true);
        Closeables.close(null, false);
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 4K bytes
    - Viewed (0)
  3. pkg/xds/server.go

    		}
    	}
    }
    
    func Receive(ctx ConnectionContext) {
    	con := ctx.XdsConnection()
    	defer func() {
    		close(con.errorChan)
    		close(con.reqChan)
    		// Close the initialized channel, if its not already closed, to prevent blocking the stream.
    		select {
    		case <-con.initialized:
    		default:
    			close(con.initialized)
    		}
    	}()
    
    	firstRequest := true
    	for {
    		req, err := con.stream.Recv()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 13 20:55:20 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  4. platforms/core-execution/build-cache-local/src/main/java/org/gradle/caching/local/internal/DirectoryBuildCache.java

            tempFileStore.withTempFile(key, file -> {
                try {
                    Closer closer = Closer.create();
                    try {
                        result.accept(closer.register(new FileOutputStream(file)));
                    } catch (Exception e) {
                        throw closer.rethrow(e);
                    } finally {
                        closer.close();
                    }
                } catch (IOException ex) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:53 UTC 2024
    - 7K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/io/TestOutputStream.java

        throwIf(OPEN_THROWS);
      }
    
      public boolean closed() {
        return closed;
      }
    
      @Override
      public void write(byte[] b, int off, int len) throws IOException {
        throwIf(closed);
        throwIf(WRITE_THROWS);
        super.write(b, off, len);
      }
    
      @Override
      public void write(int b) throws IOException {
        throwIf(closed);
        throwIf(WRITE_THROWS);
        super.write(b);
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 2.2K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/io/TestInputStream.java

        throwIf(closed);
        throwIf(SKIP_THROWS);
        return in.skip(n);
      }
    
      @Override
      public int available() throws IOException {
        throwIf(closed);
        return options.contains(TestOption.AVAILABLE_ALWAYS_ZERO) ? 0 : in.available();
      }
    
      @Override
      public void close() throws IOException {
        closed = true;
        throwIf(CLOSE_THROWS);
        in.close();
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 2.5K bytes
    - Viewed (0)
  7. test/fixedbugs/issue6055.go

    // license that can be found in the LICENSE file.
    
    package main
    
    import "runtime"
    
    type Closer interface {
    	Close()
    }
    
    func nilInterfaceDeferCall() {
    	defer func() {
    		// make sure a traceback happens with jmpdefer on the stack
    		runtime.GC()
    	}()
    	var x Closer
    	defer x.Close()
    }
    
    func shouldPanic(f func()) {
    	defer func() {
    		if recover() == nil {
    			panic("did not panic")
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 563 bytes
    - Viewed (0)
  8. src/net/packetconn_test.go

    			skipOrFatalFn()
    			continue
    		}
    
    		c1, err := ListenPacket(tt.net, tt.addr1)
    		if err != nil {
    			t.Fatal(err)
    		}
    		defer closer(c1, tt.net, tt.addr1, tt.addr2)
    		c1.LocalAddr()
    
    		c2, err := ListenPacket(tt.net, tt.addr2)
    		if err != nil {
    			t.Fatal(err)
    		}
    		defer closer(c2, tt.net, tt.addr1, tt.addr2)
    		c2.LocalAddr()
    		rb2 := make([]byte, 128)
    
    		if _, err := c1.WriteTo(wb, c2.LocalAddr()); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 3K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/io/CloseablesTest.java

        Closeables.closeQuietly(in);
        assertTrue(in.closed());
      }
    
      public void testCloseQuietly_readerWithEatenException() throws IOException {
        TestReader in = new TestReader(TestOption.CLOSE_THROWS);
        Closeables.closeQuietly(in);
        assertTrue(in.closed());
      }
    
      public void testCloseNull() throws IOException {
        Closeables.close(null, true);
        Closeables.close(null, false);
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 4K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/core/io/CloseableUtilTest.java

            CloseableUtil.close(out);
        }
    
        private static class NotifyOutputStream extends OutputStream {
            private String notify_;
    
            @Override
            public void write(final int arg0) throws IOException {
            }
    
            @Override
            public void close() throws IOException {
                super.close();
                notify_ = "closed";
            }
    
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.2K bytes
    - Viewed (0)
Back to top