bloop icon indicating copy to clipboard operation
bloop copied to clipboard

Make infinite compilation cancellable

Open rochala opened this issue 1 year ago • 0 comments

Infinite compilations are not cancelled at all. To my understanding, the cancellation happens on the next file and doesn't interrupt current source compilation.

example code with inifite compilation: Warning: it eats a lot of CPU and RAM so make sure to kill it afterwards.

//> using scala "3.2.2"
//> using lib "co.fs2::fs2-io:3.6.1"

import cats.effect.*
import fs2.*

object Main extends IOApp.Simple:
  def run: IO[Unit] = Stream.duration

rochala avatar Mar 14 '23 13:03 rochala