ifesdjeen / hashed-wheel-timer

High Performance Timer / Scheduler Library compatible with ScheduledExecutorService
Eclipse Public License 1.0
223 stars 43 forks source link

Round up to resolution if firstDelay is too small - #5 #6

Closed 0xg0nz0 closed 7 years ago

ifesdjeen commented 7 years ago

I've cherry-picked 500ef7e0eedf08023c6118445c170cbe593afe85, but hesitated with b1440c7a592c8410fa7f34047fb3f3fe8caceeb4. Reason for that being that for "scheduling one shot for as soon as possible we already have multiple different methods (submit would do exactly that). In my opinion, it makes API less intuitive.

I've released an RC2 with this change.

ifesdjeen commented 7 years ago

Thank you for the patch!

0xg0nz0 commented 7 years ago

Understood, no problem, and thanks for taking in the ThreadFactory patch for RC2. :-)