标签: scala scalaz-stream
我试过这样做,但那不起作用:
Process("Hello", "Salut", "Bye", "Ciao").interleave(time.sleep(0.5.seconds).repeat)
答案 0 :(得分:1)
(处理(“你好”,“Salut”,“再见”,“Ciao”)拉链(time.awakeEvery(0.5 s)) .MAP(_._ 1)