Skip to content

Commit

Permalink
Correct 'with-lock' example
Browse files Browse the repository at this point in the history
  • Loading branch information
gorsuch committed Apr 12, 2014
1 parent 24af079 commit 2b6c221
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ See the [API docs](http://ptaoussanis.github.io/carmine/taoensso.carmine.message
(:require [taoensso.carmine.locks :as locks]) ; Add to `ns` macro

(locks/with-lock "my-lock"
{:pool {<opts>} :spec {<opts>}} ; Connection details
1000 ; Time to hold lock
500 ; Time to wait (block) for lock acquisition
(println "This was printed under lock!"))
Expand Down

0 comments on commit 2b6c221

Please sign in to comment.