@@ -544,21 +544,18 @@ public override void Cleanup()
544544}
545545
546546[ AggressivelyOptimizeMethods ]
547- public class BenchmarkActionAsyncEnumerable < T > : BenchmarkActionBase
548- #if NET9_0_OR_GREATER
549- where T : allows ref struct
550- #endif
547+ public class BenchmarkActionConfiguredCancelableAsyncEnumerable < T > : BenchmarkActionBase
551548{
552- private readonly Func < IAsyncEnumerable < T > > callback ;
549+ private readonly Func < ConfiguredCancelableAsyncEnumerable < T > > callback ;
553550 private readonly int unrollFactor ;
554551 private WorkloadValueTaskSource workloadValueTaskSource = null ! ;
555552 private IClock ? clock ;
556553 private long invokeCount ;
557554
558555 [ SetsRequiredMembers ]
559- public BenchmarkActionAsyncEnumerable ( object ? instance , MethodInfo method , int unrollFactor )
556+ public BenchmarkActionConfiguredCancelableAsyncEnumerable ( object ? instance , MethodInfo method , int unrollFactor )
560557 {
561- callback = CreateWorkload < Func < IAsyncEnumerable < T > > > ( instance , method ) ;
558+ callback = CreateWorkload < Func < ConfiguredCancelableAsyncEnumerable < T > > > ( instance , method ) ;
562559 this . unrollFactor = unrollFactor ;
563560 InvokeSingle = InvokeOnce ;
564561 InvokeUnroll = WorkloadActionUnroll ;
@@ -626,21 +623,18 @@ public override void Cleanup()
626623}
627624
628625[ AggressivelyOptimizeMethods ]
629- public class BenchmarkActionConfiguredCancelableAsyncEnumerable < T > : BenchmarkActionBase
630- #if NET10_0_OR_GREATER
631- where T : allows ref struct
632- #endif
626+ public class BenchmarkActionAsyncEnumerable < T > : BenchmarkActionBase
633627{
634- private readonly Func < ConfiguredCancelableAsyncEnumerable < T > > callback ;
628+ private readonly Func < IAsyncEnumerable < T > > callback ;
635629 private readonly int unrollFactor ;
636630 private WorkloadValueTaskSource workloadValueTaskSource = null ! ;
637631 private IClock ? clock ;
638632 private long invokeCount ;
639633
640634 [ SetsRequiredMembers ]
641- public BenchmarkActionConfiguredCancelableAsyncEnumerable ( object ? instance , MethodInfo method , int unrollFactor )
635+ public BenchmarkActionAsyncEnumerable ( object ? instance , MethodInfo method , int unrollFactor )
642636 {
643- callback = CreateWorkload < Func < ConfiguredCancelableAsyncEnumerable < T > > > ( instance , method ) ;
637+ callback = CreateWorkload < Func < IAsyncEnumerable < T > > > ( instance , method ) ;
644638 this . unrollFactor = unrollFactor ;
645639 InvokeSingle = InvokeOnce ;
646640 InvokeUnroll = WorkloadActionUnroll ;
0 commit comments