rustic icon indicating copy to clipboard operation
rustic copied to clipboard

catchResult for promises

Open kiranpradeep opened this issue 1 year ago • 0 comments

In most other similar libraries for option/result, we don't similar type inferencing. I like that for Option, once inside if() we can directly use the variable. Similar for Result, once inside isOk() check, type inference is active. awesome job.

This is not an issue, only a request. Currently, catchResult can only be used with functions. Can it be extended to Promises ?

kiranpradeep avatar Dec 30 '23 14:12 kiranpradeep