mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-14 07:53:40 +00:00
runtime: avoid an allocation in (*time.Timer).Reset
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user