Defer a latch count down in transactor spec
This commit is contained in:
parent
a857078907
commit
a8c7bd5a23
1 changed files with 1 additions and 1 deletions
|
|
@ -69,7 +69,7 @@ object SimpleTransactor {
|
|||
def atomically = {
|
||||
case Set(ref, value, latch) ⇒ {
|
||||
ref.set(value)
|
||||
latch.countDown()
|
||||
deferred { latch.countDown() }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue