dotnet/BenchmarkDotNet
Add CancellationToken support on non-async benchmark runner APIs
Fechada
#3.204 aberto em 22 de jul. de 2026
good first issueup-for-grabs
Métricas do repositório
- Stars
- (11.472 estrelas)
- Métricas de merge de PR
- (Mesclagem média 5d 9h) (20 fundiu PRs em 30d)
Description
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