code: def root(context):
  	
  	
  	response = context.response
  	
  	parts = []
  	
  	for i in range(12):
  		for j in range(12):
  			parts.append(executor.submit(mul, i, j))
  	
  	def stream(parts, timeout=None):
  		try:
  			for future in as_completed(parts, timeout):
  				mime, result = future.result()
  				result = result.encode('utf8')
  				
  				yield "!!!!!!=_NextPart_{num}\nContent-Type: {mime}\nContent-Length: {length}\n\n".format(
  						num = randint(100000000, 999999999),
  						mime = mime,
  						length = len(result)
  					).encode('utf8') + result
  		
  		except TimeoutError:
  			for future in parts:
  				future.cancel()
  	
  	response.content_length = None
  	response.app_iter = stream(parts, 0.2)
  	
  	return response
docs: Multipart AJAX request example.
  	
  	See: http://test.getify.com/mpAjax/description.html