Forever

trait Forever

A ResourceApp which runs until externally interrupted (with SIGINT), at which point all finalizers will be run and the application will shut down upon completion. This is an extremely common pattern in practical Cats Effect applications and is particularly applicable to network servers.

See also

cats.effect.kernel.Resource!.useForever

class Object
trait Matchable
class Any

Value members

Abstract methods

def run(args: List[String]): Resource[[A] =>> IO[A], Unit]

Identical to ResourceApp.run except that it delegates to cats.effect.kernel.Resource!.useForever instead of cats.effect.kernel.Resource!.use.

Identical to ResourceApp.run except that it delegates to cats.effect.kernel.Resource!.useForever instead of cats.effect.kernel.Resource!.use.

See also

Concrete methods

final def main(args: Array[String]): Unit