diff --git a/zio-kafka/src/main/scala/zio/kafka/consumer/internal/Runloop.scala b/zio-kafka/src/main/scala/zio/kafka/consumer/internal/Runloop.scala index 8255d6836..6105432db 100644 --- a/zio-kafka/src/main/scala/zio/kafka/consumer/internal/Runloop.scala +++ b/zio-kafka/src/main/scala/zio/kafka/consumer/internal/Runloop.scala @@ -150,7 +150,8 @@ private[consumer] final class Runloop private ( streamControl.offerRecords(builder.result()) } } - .fork + .fork + .onExecutor(topLevelExecutor) } yield fulfillResult } }