#NEWLINE# def call( self , fn ) : #NEWLINE# #INDENT# def decorated_fn( * params ) : #NEWLINE# #INDENT# if ( len ( self . queue ) < self . limit ) : #NEWLINE# #INDENT# self . queue . append ( ( fn , params ) ) #NEWLINE# if ( not self . processing_queue ) : #NEWLINE# #INDENT# self . process_queue ( ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return self