hello clojure-pdx!
Good morning, Knights that used to call themselves Clojerks!
finishing up my last Ruby project…um…soon
@bill: How about some internal clojure lib therapy?
class Atom
def initialize(value)
@value = value
@mutex = Mutex.new
end
def deref()
@mutex.synchronize {
@value
}
end
def reset(value)
@mutex.synchronize {
@value = value
}
end
end
you can implement swap the same way if you need it :simple_smile: