dotnet/BenchmarkDotNet
Add CancellationToken support on non-async benchmark runner APIs
已關閉
#3,204 建立於 2026年7月22日
good first issueup-for-grabs
倉庫指標
- 星標
- (11,464 顆星)
- 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