src: introduce TimerWrap/TimerWrapHandle utility
Several places throughout src/* make use of uv_timer_t internally (inspector, perf, quic, etc). These duplicate code. This introduces a new utility class to consolidate code and make it easier overall to work with internal uv_timer_t instances.
First commit adds the utility, subsequent commits update systems that use it.
The quic specific commit cannot be backported to 14.x, the rest of the commits are backportable.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines