Documentation Error for Timer #126

Closed
paulrd opened this Issue Mar 5, 2013 · 1 comment

Projects

None yet

2 participants

@paulrd
Contributor
paulrd commented Mar 5, 2013

The documentation for timer says the following:

:initial-delay Delay, in milliseconds, of first call. Defaults to 0.

It should read:

:initial-delay Delay, in milliseconds, of first call. Defaults to 1000.

Behavior test:

(defn test-timer []
     (let [p (promise)
            t (timer (fn [_] (deliver p true))
                        :repeats? false)]
         (time @p)))
@daveray daveray added a commit that referenced this issue Mar 6, 2013
@daveray Address issue #126
Initial delay for a timer was inexplicably set to 1000 rather than 0
as documented.
333adf8
@daveray
Owner
daveray commented Mar 6, 2013

Fixed. Thanks for noticing that.

@daveray daveray closed this Mar 6, 2013
@jgeraerts jgeraerts added a commit to jgeraerts/seesaw that referenced this issue May 23, 2013
@daveray @jgeraerts + jgeraerts Address issue #126
Initial delay for a timer was inexplicably set to 1000 rather than 0
as documented.
091cd18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment