Skip to content

Commit

Permalink
Merge pull request #19 from bts/arity2-timeout-nil-interval
Browse files Browse the repository at this point in the history
Support nil interval in arity-2 timeout!
  • Loading branch information
ztellman committed Feb 5, 2015
2 parents 9b1aff3 + e9f29f3 commit 3f7da63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/manifold/deferred.clj
Expand Up @@ -925,7 +925,7 @@
returned by `chain`, all actions not yet completed will be short-circuited upon timeout."
([d interval]
(cond
(realized? d)
(or (nil? interval) (realized? d))
nil

(not (pos? interval))
Expand Down

0 comments on commit 3f7da63

Please sign in to comment.