rustic
rustic copied to clipboard
catchResult for promises
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 ?