Skip to content

Commit

Permalink
Support nil interval in arity-2 timeout!
Browse files Browse the repository at this point in the history
  • Loading branch information
bts committed Feb 5, 2015
1 parent 9b1aff3 commit e9f29f3
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 e9f29f3

Please sign in to comment.