Scala, Concurrency, API, Project Loom, Java.
shouldBe Vector("timeout", "done") } Escaping the structure Structured concurrency is useful, but it also might prove challenging to work with at times. However, there is an escape hatch that allows us some more flexibility. First, what about nesting forks? scoped { val f1 = fork { val f2 = fork {