Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 686 for closeFn (0.13 sec)

  1. 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)
  2. pkg/ctrlz/assets/static/js/bootstrap-4.0.0.min.js

    ype:e.end,handle:function(e){if(t(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}}),i}(e),L=(a="alert",h="."+(l="bs.alert"),c=(o=e).fn[a],u={CLOSE:"close"+h,CLOSED:"closed"+h,CLICK_DATA_API:"click"+h+".data-api"},f="alert",d="fade",_="show",g=function(){function t(t){this._element=t}var e=t.prototype;return e.close=function(t){t=t||this._element;var e=this._getRootElement(t);this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e)},e.dispose=function(){o.remov...
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 47.8K bytes
    - Viewed (0)
  3. internal/grid/muxclient.go

    func (m *muxClient) doPing(respHandler chan<- Response) (ok bool) {
    	m.respMu.Lock()
    	if m.closed {
    		m.respMu.Unlock()
    		// Already closed. This is not an error state;
    		// we may just be delivering the last responses.
    		return true
    	}
    
    	// Only check ping when not closed.
    	if got := time.Since(time.Unix(0, atomic.LoadInt64(&m.LastPong))); got > m.clientPingInterval*2 {
    		m.respMu.Unlock()
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 07 15:51:52 UTC 2024
    - 15.9K bytes
    - Viewed (0)
  4. src/database/sql/convert.go

    			}
    			rows.closemu.Lock()
    			*d = Rows{
    				dc:          rows.dc,
    				releaseConn: func(error) {},
    				rowsi:       s,
    			}
    			// Chain the cancel function.
    			parentCancel := rows.cancel
    			rows.cancel = func() {
    				// When Rows.cancel is called, the closemu will be locked as well.
    				// So we can access rs.lasterr.
    				d.close(rows.lasterr)
    				if parentCancel != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  5. cni/pkg/nodeagent/ztunnelserver.go

    		pods: pods,
    	}, nil
    }
    
    func (z *ztunnelServer) Close() error {
    	return z.listener.Close()
    }
    
    func (z *ztunnelServer) Run(ctx context.Context) {
    	context.AfterFunc(ctx, func() { _ = z.Close() })
    
    	for {
    		log.Debug("accepting conn")
    		conn, err := z.accept()
    		if err != nil {
    			if errors.Is(err, net.ErrClosed) {
    				log.Debug("listener closed - returning")
    				return
    			}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 22:07:03 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  6. src/syscall/syscall_linux_test.go

    		// We use syscall.Read directly to avoid the poller.
    		// This will return when the write side is closed.
    		n, err := syscall.Read(int(rd.Fd()), data)
    		if !(n == 0 && err == nil) {
    			t.Errorf("expected read to return 0, got %d, %s", n, err)
    		}
    
    		// Clean up rd and also ensure rd stays reachable so
    		// it doesn't get closed by GC.
    		rd.Close()
    		wg.Done()
    	}()
    	<-ready
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 23K bytes
    - Viewed (0)
  7. src/os/pipe_test.go

    			t.Errorf("got %v, expected EOF or closed", err)
    		}
    		close(done)
    	}()
    
    	// Give the goroutine a chance to enter the Read
    	// or Write call. This is sloppy but the test will
    	// pass even if we close before the read/write.
    	<-enteringRead
    	time.Sleep(20 * time.Millisecond)
    
    	if err := r.Close(); err != nil {
    		t.Error(err)
    	}
    	// r.Close has completed, but since we assume r is in blocking mode that
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 05 23:35:29 UTC 2023
    - 12.4K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/Range.java

       * returned range is {@linkplain BoundType#CLOSED closed} on both ends.
       *
       * @since 14.0
       */
      public static <C extends Comparable<?>> Range<C> singleton(C value) {
        return closed(value, value);
      }
    
      /**
       * Returns the minimal range that {@linkplain Range#contains(Comparable) contains} all of the
       * given values. The returned range is {@linkplain BoundType#CLOSED closed} on both ends.
       *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/connection/RealCall.kt

      override fun request(): Request = originalRequest
    
      /**
       * Immediately closes the socket connection if it's currently held. Use this to interrupt an
       * in-flight request from any thread. It's the caller's responsibility to close the request body
       * and response body streams; otherwise resources may be leaked.
       *
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/storage/cacher/cache_watcher.go

    	// previous events were already put into it before, no matter whether
    	// c.done is close or not.
    	// Thus we cannot simply select from c.done and c.result and this
    	// would give us non-determinism.
    	// At the same time, we don't want to block infinitely on putting
    	// to c.result, when c.done is already closed.
    	//
    	// This ensures that with c.done already close, we at most once go
    	// into the next select after this. With that, no matter which
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 24 12:22:41 UTC 2023
    - 18.7K bytes
    - Viewed (0)
Back to top