Skip to content

Commit f58043f

Browse files
committed
Adjustments for AwaitableResult
1 parent d0011cd commit f58043f

File tree

3 files changed

+213
-85
lines changed

3 files changed

+213
-85
lines changed

src/DotNext/Optional.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public static async Task<Optional<TOutput>> Convert<TInput, TOutput>(this Task<O
7878
/// <typeparam name="T">The type of the value.</typeparam>
7979
/// <param name="value">The value to be placed to the container.</param>
8080
/// <returns>The value encapsulated by <see cref="Result{T}"/>.</returns>
81-
public static Optional<T> FromValue<T>(T value) => new(value);
81+
public static Optional<T> From<T>(T value) => new(value);
8282

8383
/// <summary>
8484
/// Creates <see cref="Result{T}"/> from <see cref="Optional{T}"/> instance.

0 commit comments

Comments
 (0)