Removed STM module. See #1503
* Removed from build. Didn't remove akka-stm directory, contains transactors also. * Replaced usage of org.multiverse.api.latches.StandardLatch in some tests with testkit.TestLatch
This commit is contained in:
parent
5e2dff2356
commit
06a08c5823
13 changed files with 117 additions and 3659 deletions
|
|
@ -1,27 +0,0 @@
|
|||
package akka.docs.stm
|
||||
|
||||
import org.scalatest.WordSpec
|
||||
import org.scalatest.matchers.MustMatchers
|
||||
|
||||
class StmDocSpec extends WordSpec with MustMatchers {
|
||||
|
||||
"simple counter example" in {
|
||||
//#simple
|
||||
import akka.stm._
|
||||
|
||||
val ref = Ref(0)
|
||||
|
||||
def counter = atomic {
|
||||
ref alter (_ + 1)
|
||||
}
|
||||
|
||||
counter
|
||||
// -> 1
|
||||
|
||||
counter
|
||||
// -> 2
|
||||
//#simple
|
||||
|
||||
ref.get must be === 2
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue