Skip to content

Commit

Permalink
Remove locking from peek function
Browse files Browse the repository at this point in the history
  • Loading branch information
aroemers committed Mar 2, 2024
1 parent a38a955 commit 1461118
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/redelay/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@

clojure.lang.IPersistentStack
(peek [this]
(locking this
(when (realized? this)
@value)))
(let [v @value]
(when (not= v unrealized)
v)))

StateFunctions
(force-close [this]
Expand Down

0 comments on commit 1461118

Please sign in to comment.