Thank you Spiro, excellent video on this important pattern... great supplement to the docs of the library
@spyroskatsios4 ай бұрын
Thank you very much!
@jaymartinez31110 ай бұрын
Thanks a million. Exactly what I was looking for with no fluff and straight to the point. Following the channel for sure!
@spyroskatsios10 ай бұрын
Thanks a lot man!!!
@masafticАй бұрын
i was wondering how to do that with a void method. Didn't know you can do an ErrorOr Thanks for the tutorial
@spyroskatsiosАй бұрын
Glad I could help!
@ahmadalmasri44168 ай бұрын
that's simple and clean thank you
@spyroskatsios8 ай бұрын
You're very welcome!
@projkbsta Жыл бұрын
thanks for the ErrorOr tutorial
@spyroskatsios Жыл бұрын
You are very welcome!
@fresh0bm3 ай бұрын
How to user ErrorOr with void methods? Let's say I would like to validate errors on caller side but don't wanna return anything as result from the method.
@spyroskatsios3 ай бұрын
I don't get exactly what you want to achieve, but the erroror as every result pattern library have the usage of returning some kind of union (one or the other), so if you are using a method that returns void, you are not using the library
@fresh0bm3 ай бұрын
So in void method we can't have error or what?
@spyroskatsios3 ай бұрын
You can use ErrorOr so you can return Success if not failed and the error otherwise.