New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: Better Result
class implementation
#23335
refactor: Better Result
class implementation
#23335
Conversation
Result<T, E>
AsyncResult<T, E>
class and support transforms
AsyncResult<T, E>
class and support transformsAsyncResult<T, E>
class with transforms support
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems to need some more code changes, see annotations
AsyncResult<T, E>
class with transforms supportResult
utility class
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
otherwise LGTM
Please, merge this one |
🎉 This PR is included in version 36.13.2 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Changes
AsyncResult
class for wrapping and transforming promise-based results.transform()
without intermixing it withawait
clausessuccess
took
)value
anderror
getters.unwrap()
method should be used insteadwrap
callback or promise to theResult
, perform type-safetransform
s, thenunwrap
the final resultT
andE
type parametersContext
Documentation (please check one with an [x])
How I've tested my work (please select one)
I have verified these changes via: