You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for the answer. It doesn't work though, because the err type i get is *errors.errorString for some reason, and the As function returns false.
Probably ErrMultiple lacks some implementations of interfaces required by errors package so errors.As cannot cast the error.
Try casting explicitly e, ok := err.(floc.ErrMultiple).
Anyway I would recommend using idiomatic Go instead of floc. There is a great support in Go and lots of great tools for making multiprocessing apps easily.
I can't seem to figure out how to handle multiple errors occurring in parallel.
The
err
only contains one of the errors as far as I can tell. Seems like there is an ErrMultiple type, but I don't know how to use it.Thank you for your help!
The text was updated successfully, but these errors were encountered: