support for dotnet9 compilation
All checks were successful
.NET Test / test (push) Successful in 2m2s
All checks were successful
.NET Test / test (push) Successful in 2m2s
This commit is contained in:
@@ -5,7 +5,7 @@ namespace Just.Railway;
|
||||
public static partial class ResultExtensions
|
||||
{
|
||||
#region Match (with fallback)
|
||||
|
||||
|
||||
public static T Match<T>(this in Result<T> result, Func<Error, T> fallback)
|
||||
{
|
||||
return result.State switch
|
||||
@@ -15,7 +15,7 @@ public static partial class ResultExtensions
|
||||
_ => throw new ResultNotInitializedException(nameof(result))
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
public static async Task<T> Match<T>(this Result<T> result, Func<Error, Task<T>> fallback)
|
||||
{
|
||||
return result.State switch
|
||||
@@ -77,7 +77,7 @@ public static partial class ResultExtensions
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
#region Merge
|
||||
|
||||
public static Result Merge(this IEnumerable<Result> results)
|
||||
|
||||
Reference in New Issue
Block a user