build: create error group per opt
Using the syncronization primitive, we can avoid needing to create a separate wait group. This allows us to sidestep the issue where the wait group could be completed, but the build invocation functions had not terminated - if one of the functions was to terminate with an error, then it was possible to encounter a race condition, where the result handling code would begin executing, despite an error. The refactor to use a separate error group which more elegantly handles the concept of function returns and errors, ensures that we can't encounter this issue. Signed-off-by: Justin Chadwell <me@jedevc.com>pull/1504/head
							parent
							
								
									1180d919f5
								
							
						
					
					
						commit
						8b7aa1a168
					
				
					Loading…
					
					
				
		Reference in New Issue