jesseduffield.lazygit/vendor/github.com/sasha-s/go-deadlock/timerpool_go125.go
dependabot[bot] 5928e851dd
Bump github.com/sasha-s/go-deadlock from 0.3.6 to 0.3.9
Bumps [github.com/sasha-s/go-deadlock](https://github.com/sasha-s/go-deadlock) from 0.3.6 to 0.3.9.
- [Release notes](https://github.com/sasha-s/go-deadlock/releases)
- [Commits](https://github.com/sasha-s/go-deadlock/compare/v0.3.6...v0.3.9)

---
updated-dependencies:
- dependency-name: github.com/sasha-s/go-deadlock
  dependency-version: 0.3.9
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-04-01 09:24:57 +00:00

19 lines
506 B
Go

//go:build !goexperiment.synctest && !deadlock_synctest && !deadlock_disable && go1.25
package deadlock
// shouldDisableTimerPool determines if timer/entry pooling should be disabled.
// In Go 1.25, pooling is enabled by default for performance.
func shouldDisableTimerPool() bool {
switch Opts.TimerPool {
case TimerPoolDefault:
return false // Default: enable timer pooling for performance
case TimerPoolEnabled:
return false
case TimerPoolDisabled:
return true
default:
return false
}
}