From 81c176d2560d0e2aeb8d1aacfee21c2a93cbfef8 Mon Sep 17 00:00:00 2001 From: Flavio Brasil Date: Sun, 26 Nov 2023 08:29:29 -0800 Subject: [PATCH] fix scala 2 build --- kyo-core/shared/src/main/scala/kyo/concurrent/fibers.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kyo-core/shared/src/main/scala/kyo/concurrent/fibers.scala b/kyo-core/shared/src/main/scala/kyo/concurrent/fibers.scala index ba10d8b6c..2abaf826b 100644 --- a/kyo-core/shared/src/main/scala/kyo/concurrent/fibers.scala +++ b/kyo-core/shared/src/main/scala/kyo/concurrent/fibers.scala @@ -220,7 +220,7 @@ object fibers { def parallelFiber[T](l: Seq[T > Fibers])(implicit f: Flat[T > Fibers]): Fiber[Seq[T]] > IOs = l.size match { case 0 => Fiber.done(Seq.empty) - case 1 => Fibers.run(l(0).map(Seq(_))) + case 1 => Fibers.run(l(0).map(Seq(_)))(Flat.unsafe.checked) case _ => Locals.save.map { st => IOs {