Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for LoadInt32 (0.17 sec)

  1. internal/pubsub/pubsub.go

    	types := Mask(atomic.LoadUint64(&ps.types))
    	if !types.Overlaps(Mask(mask.Mask())) {
    		return 0
    	}
    	return atomic.LoadInt32(&ps.numSubscribers)
    }
    
    // Subscribers returns the number of current subscribers for all types.
    func (ps *PubSub[T, M]) Subscribers() int32 {
    	return atomic.LoadInt32(&ps.numSubscribers)
    }
    
    // New inits a PubSub system with a limit of maximum
    // subscribers unless zero is specified
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Feb 06 16:57:30 GMT 2024
    - 5.2K bytes
    - Viewed (0)
Back to top