mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-10 07:36:27 -04:00
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>
19 lines
526 B
Go
19 lines
526 B
Go
//go:build (goexperiment.synctest || deadlock_synctest) && !deadlock_disable
|
|
|
|
package deadlock
|
|
|
|
// shouldDisableTimerPool determines if timer pooling should be disabled
|
|
// In synctest builds, timer pooling is disabled by default to avoid cross-bubble issues
|
|
func shouldDisableTimerPool() bool {
|
|
switch Opts.TimerPool {
|
|
case TimerPoolDefault:
|
|
return true // Default: disable timer pooling for synctest compatibility
|
|
case TimerPoolEnabled:
|
|
return false
|
|
case TimerPoolDisabled:
|
|
return true
|
|
default:
|
|
return true
|
|
}
|
|
}
|