#NEWLINE# @ staticmethod #NEWLINE# def _get_tasks( func , it , size ) : #NEWLINE# #INDENT# it = iter ( it ) #NEWLINE# while 1 : #NEWLINE# #INDENT# x = tuple ( itertools . islice ( size , size ) ) #NEWLINE# if ( not x ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# ( yield ( func , x ) )