Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for outQueue (0.11 sec)

  1. internal/grid/connection.go

    	go func() {
    		defer wg.Done()
    		for {
    			select {
    			case <-stopDraining:
    				return
    			default:
    				if cap(c.outQueue)-len(c.outQueue) > 100 {
    					// Queue is not full, wait a bit.
    					time.Sleep(1 * time.Millisecond)
    					continue
    				}
    				select {
    				case v := <-c.outQueue:
    					PutByteBuffer(v)
    				case <-stopDraining:
    					return
    				}
    			}
    		}
    	}()
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 29 18:10:04 UTC 2024
    - 46.7K bytes
    - Viewed (0)
Back to top