Innovenergy_trunk/csharp/lib/Utils/Try/TryAsync.cs

14 lines
240 B
C#
Raw Normal View History

2023-02-16 12:57:06 +00:00
namespace InnovEnergy.Lib.Utils.Try;
[Obsolete]
public partial class TryAsync<R>
{
private Func<Task<R>> Func { get; }
internal TryAsync(Func<Task<R>> func)
{
Func = func;
}
public Task<R> Throw() => Func();
}