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();