Skip to content

v1.0.2

Compare
Choose a tag to compare
@skrasekmichael skrasekmichael released this 21 Mar 11:30
· 9 commits to main since this release
036ad09

Changes

  • removed implicit dependency from RailwayResult.FunctionalExtensions to RailwayResult.Errors (PR #8)
  • added missing .Then and .ThenAsync extension methods (PR #11)
  • added missing .Tap and .TapAsync extension methods (PR #12)
  • marked one .Tap extension methods as obsolete (PR #12)
  • added missing Match method on Result object (PR #13)

Obsolete method

[Obsolete("This methods seems useless, as Then methods should always unwrap returning result object.")]
Task<Result<TValue>> Tap<TValue>(this Task<Result<Result<TValue>>> resultTask, Action<TValue> func)

Tests

All methods (except obsolete ones) in RailwayResult and RailwayResult.FunctionalExtensions are covered by unit tests:

  • PR #8 .Ensure
  • PR #9 .EnsureNotNull
  • PR #10 .And and .AndAsync
  • PR #11 .Then and .ThenAsync
  • PR #12 .Tap and .TapAsync
  • PR #13 accessing Value/Error of result, .Match, .ToResult and .ToResultAsync