runtime: avoid an allocation in (*time.Timer).Reset

This commit is contained in:
Elias Naur
2025-05-09 15:52:48 +02:00
committed by Ron Evans
parent 2da9d26e21
commit 180662f038
6 changed files with 25 additions and 25 deletions
+2 -2
View File
@@ -56,9 +56,9 @@ func addTimer(tim *timerNode) {
runtimePanic("timers not supported without a scheduler")
}
func removeTimer(tim *timer) bool {
func removeTimer(tim *timer) *timerNode {
runtimePanic("timers not supported without a scheduler")
return false
return nil
}
func schedulerRunQueue() *task.Queue {