merge in next_gen branch
This commit is contained in:
		
							parent
							
								
									fda07698db
								
							
						
					
					
						commit
						b51ec9bd71
					
				
					 99 changed files with 14895 additions and 32 deletions
				
			
		
							
								
								
									
										13
									
								
								toxygen/common/provider.py
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								toxygen/common/provider.py
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,13 @@
 | 
			
		|||
 | 
			
		||||
 | 
			
		||||
class Provider:
 | 
			
		||||
 | 
			
		||||
    def __init__(self, get_item_action):
 | 
			
		||||
        self._get_item_action = get_item_action
 | 
			
		||||
        self._item = None
 | 
			
		||||
 | 
			
		||||
    def get_item(self):
 | 
			
		||||
        if self._item is None:
 | 
			
		||||
            self._item = self._get_item_action()
 | 
			
		||||
 | 
			
		||||
        return self._item
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue