diff --git a/src/_common/Results/Result.Utilities.cs b/src/_common/Results/Result.Utilities.cs index 06fd4e49c..e936e20a9 100644 --- a/src/_common/Results/Result.Utilities.cs +++ b/src/_common/Results/Result.Utilities.cs @@ -6,6 +6,12 @@ namespace Skender.Stock.Indicators; public static partial class ResultUtility { + // not recommended, slower in multi-thread scenarios + public static Task> AsAsync( + this IEnumerable results) + where TResult : ISeries + => Task.Run(() => results); + // CONDENSE (REMOVE null and NaN results) /// ///