dotnet/BenchmarkDotNet
Add CancellationToken support on non-async benchmark runner APIs
已关闭
#3,204 创建于 2026年7月22日
good first issueup-for-grabs
仓库指标
- 星标
- (11,472 个星标)
- PR 合并指标
- (平均合并 5天 9小时) (30 天内合并 20 个 PR)
描述
Currently BenchmarkDotNet support CancellationToken on Async APIs.
It's also desirable to support CancellationToken on non-async APIs also on BenchmarkSwitcher/BenchmarkRunner.
Expected usage
Use xUnit.v3's TestContext.Current.CancellationToken to run benchmarks.
Without