Declarative concurrency without threads, for Scala