Skip to content

src: introduce TimerWrap/TimerWrapHandle utility

Rodrigo Muino Tomonari requested to merge github/fork/jasnell/timers-wrap into master

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), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines

Merge request reports

Loading