is there any way for Result.Tap for async method calls? #375
-
is there any way for Result.Tap for async method calls? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Sure, there are tons of Tap extensions. They are located in the following files: In short, you can call So yes, async methods are definitely supported! |
Beta Was this translation helpful? Give feedback.
Sure, there are tons of Tap extensions. They are located in the following files:
https://github.com/vkhorikov/CSharpFunctionalExtensions/blob/master/CSharpFunctionalExtensions/Result/Extensions/Tap.cs
https://github.com/vkhorikov/CSharpFunctionalExtensions/blob/master/CSharpFunctionalExtensions/Result/Extensions/TapAsyncBoth.cs
https://github.com/vkhorikov/CSharpFunctionalExtensions/blob/master/CSharpFunctionalExtensions/Result/Extensions/TapAsyncLeft.cs
https://github.com/vkhorikov/CSharpFunctionalExtensions/blob/master/CSharpFunctionalExtensions/Result/Extensions/TapAsyncRight.cs
In short, you can call
Tap
onResult
/Result<T>
/Result<T, TError>
/UnitResult<TError>
and onTask<Result>
/Task…