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
Maybe we can try to create a deep copy of the object before passing it to the consumer functions just for for inspect and inspectErr methods, basically this solves the problem.
Maybe we can try to create a deep copy of the object before passing it to the consumer functions just for for inspect and inspectErr methods, basically this solves the problem.
The value has to be either Serializable or deepCopy(v) should convert the object into a byte array and then construct a new instance out of it. And with byte array you also erase initial type of object and have to do an unsafe cast.
Both
inspect
andinspectErr
have a potential side effect of mutating the value wrapped into Result. This is not a desired behavior.The text was updated successfully, but these errors were encountered: