Scala, Concurrency, API, Project Loom, Java.
{ Thread.sleep(1000); 5 } val f2 = fork { Thread.sleep(2000); 7 } f1.join() + f2.join() } scoped { println(run()) println(run()) } In other words, the presence of a using Ox in a method's type signature represents a requirement for a capability to fork computations. As before, the structural