Also, that function already returning nil if no timer.

Sent from my phone.

> On 3/06/2014, at 1:42 pm, Tony Arcieri <notifications@github.com> wrote:
> 
> In lib/timers/group.rb:
> 
> > +    def wait
> > +      # Repeatedly call sleep until there is no longer any wait_interval:
> > +      while i = wait_interval
> > +        # We cannot assume that sleep will wait for the specified time, it might be +/- a bit.
> > +        sleep i
> > +      end
> > +      
> > +      fire
> > +    end
> > +
> > +    # Interval to wait until when the next timer will fire
> > +    def wait_interval(offset = self.current_offset)
> > +      timer = @timers.first
> > +      return unless timer
> > +      interval = timer.offset - Float(offset)
> > +      interval > 0 ? interval : nil
> Why nil?
> 
> \
> Reply to this email directly or view it on GitHub.