mirror of
				https://github.com/moby/moby.git
				synced 2022-11-09 12:21:53 -05:00 
			
		
		
		
	Add docstring to pubsub.Publisher
Signed-off-by: Alexander Morozov <lk4d4@docker.com>
This commit is contained in:
		
							parent
							
								
									cf09e435c8
								
							
						
					
					
						commit
						7080f5d1cf
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -19,6 +19,8 @@ func NewPublisher(publishTimeout time.Duration, buffer int) *Publisher {
 | 
			
		|||
 | 
			
		||||
type subscriber chan interface{}
 | 
			
		||||
 | 
			
		||||
// Publisher is basic pub/sub structure. Allows to send events and subscribe
 | 
			
		||||
// to them. Can be safely used from multiple goroutines.
 | 
			
		||||
type Publisher struct {
 | 
			
		||||
	m           sync.RWMutex
 | 
			
		||||
	buffer      int
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue