lostluck commented on a change in pull request #15815:
URL: https://github.com/apache/beam/pull/15815#discussion_r737894218



##########
File path: sdks/go/pkg/beam/core/runtime/exec/pardo.go
##########
@@ -324,6 +324,11 @@ func (n *ParDo) postInvoke() error {
 
 func (n *ParDo) fail(err error) error {

Review comment:
       The solution there is  named return values with an anonymous closure 
function, which can then be overwritten by the deferred closure.
   See https://play.golang.org/p/be4nkSEFf-0
   
   Also works for non error named return values, but this is most common.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to