Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for checkCmd (0.15 sec)

  1. internal/pubsub/pubsub.go

    					continue
    				case <-doneCh:
    					return
    				}
    			}
    		}
    	}()
    
    	return nil
    }
    
    // NumSubscribers returns the number of current subscribers,
    // The mask is checked against the active subscribed types,
    // and 0 will be returned if nobody is subscribed for the type(s).
    func (ps *PubSub[T, M]) NumSubscribers(mask M) int32 {
    	types := Mask(atomic.LoadUint64(&ps.types))
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Feb 06 16:57:30 GMT 2024
    - 5.2K bytes
    - Viewed (0)
  2. cmd/erasure-coding.go

    	e.encoder = func() reedsolomon.Encoder {
    		once.Do(func() {
    			e, err := reedsolomon.New(dataBlocks, parityBlocks, reedsolomon.WithAutoGoroutines(int(e.ShardSize())))
    			if err != nil {
    				// Error conditions should be checked above.
    				panic(err)
    			}
    			enc = e
    		})
    		return enc
    	}
    	return
    }
    
    // EncodeData encodes the given data and returns the erasure-coded data.
    // It returns an error if the erasure coding failed.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Jan 31 02:11:45 GMT 2024
    - 8.6K bytes
    - Viewed (0)
Back to top