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
Make catch generic to improve call site ergonomics
Previously, callers that needed a result from catch had to declare a
variable before the call and assign to it inside the closure via
capture. By making catch a generic function returning (T, error),
callers can now return values directly from the closure and use
`return catch(...)` without the intermediate variable.
0 commit comments