Scala, Concurrency, API, Project Loom, Java.
Ox.ForkLocal("a") scoped { forkHold { v.scopedWhere("x") { trail.add(s"nested1 = ${v.get()}") scoped { forkHold { trail.add(s"nested2 = ${v.get()}") }.join() } } }.join() trail.add(s"outer = ${v.get()}") } trail.trail shouldBe Vector("nested1 = x", "nested2 = x", "outer = a") The code The source