Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for NewCond (0.09 sec)

  1. internal/ringbuffer/ring_buffer.go

    // This setting should be called before any Read or Write operation or after a Reset.
    func (r *RingBuffer) SetBlocking(block bool) *RingBuffer {
    	r.block = block
    	if block {
    		r.readCond = sync.NewCond(&r.mu)
    		r.writeCond = sync.NewCond(&r.mu)
    	}
    	return r
    }
    
    // WithCancel sets a context to cancel the ring buffer.
    // When the context is canceled, the ring buffer will be closed with the context error.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed May 15 00:11:04 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  2. api/go1.txt

    pkg strings, method (*Replacer) Replace(string) string
    pkg strings, method (*Replacer) WriteString(io.Writer, string) (int, error)
    pkg strings, type Reader struct
    pkg strings, type Replacer struct
    pkg sync, func NewCond(Locker) *Cond
    pkg sync, method (*Cond) Broadcast()
    pkg sync, method (*Cond) Signal()
    pkg sync, method (*Cond) Wait()
    pkg sync, method (*Mutex) Lock()
    pkg sync, method (*Mutex) Unlock()
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Aug 14 18:58:28 UTC 2013
    - 1.7M bytes
    - Viewed (0)
Back to top