From dd37c4d9232c62f289bfe644ec5e088cfb7f5b10 Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Fri, 15 Nov 2024 18:59:04 -0300 Subject: [PATCH] fix: tunning no yielding limit --- .../Internal/BranchContext.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Codibre.EnumerableExtensions.Branching/Internal/BranchContext.cs b/src/Codibre.EnumerableExtensions.Branching/Internal/BranchContext.cs index 7d22bcc..3fb3890 100644 --- a/src/Codibre.EnumerableExtensions.Branching/Internal/BranchContext.cs +++ b/src/Codibre.EnumerableExtensions.Branching/Internal/BranchContext.cs @@ -6,7 +6,7 @@ namespace Codibre.EnumerableExtensions.Branching.Internal; internal sealed record BranchContext(Func, ValueTask?>> GetNext, int _branchCount) { private ushort _count = 0; - private readonly ushort _limit = 1024; + private readonly ushort _limit = ushort.MaxValue / 2; internal ValueTask?> FillNext() => ++_count <= _limit ? GetNext(this) : GetYielded();