Skip to content

timers: warn on overflowed timeout duration

Rodrigo Muino Tomonari requested to merge github/fork/jasnell/timer-warning into master

Cherry-pick from ayo. This was originally a core PR from @Fishrock123 that he never pursued here for some reason. It landed today in ayo.

Ayo commit log:

Previously there wasn't any clear indicator when you hit the overflow other than possibly unexpected behavior, and I think emitting a warning may be appropriate.

PR-URL: https://github.com/ayojs/ayo/pull/71 Reviewed-By: Scott Trinh scott@scotttrinh.com Reviewed-By: Alexey Orlenko eaglexrlnk@gmail.com Reviewed-By: Stephen Belanger admin@stephenbelanger.com Reviewed-By: Anna Henningsen anna@addaleax.net Reviewed-By: Benjamin Gruenbaum benjamingr@gmail.com

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines
Affected core subsystem(s)

timers

Merge request reports

Loading