]> Cypherpunks repositories - gostls13.git/commit
runtime: delete addtimer
authorRuss Cox <rsc@golang.org>
Wed, 14 Feb 2024 16:56:57 +0000 (11:56 -0500)
committerRuss Cox <rsc@golang.org>
Wed, 28 Feb 2024 16:43:49 +0000 (16:43 +0000)
commit4a3c3ec9966022fd6a02e1790f71536acd6bcf1e
tree944bdedfc243ae3b0f771861b528355afda385fe
parent8a493a667268083a6e33de606fd90e82ddd694f0
runtime: delete addtimer

modtimer can always be used in place of addtimer.
Do that and delete addtimer, avoiding duplicated logic.

[This is one CL in a refactoring stack making very small changes
in each step, so that any subtle bugs that we miss can be more
easily pinpointed to a small change.]

Change-Id: I70291796bdac3bef5e0850f039f6f4a1da4498ae
Reviewed-on: https://go-review.googlesource.com/c/go/+/564118
Reviewed-by: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/runtime/time.go
src/time/sleep.go
src/time/tick.go