All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.evolutiongaming.kafka.journal.util.ResourceOf.scala Maven / Gradle / Ivy

The newest version!
package com.evolutiongaming.kafka.journal.util

import cats.Applicative
import cats.effect.{Fiber, Resource}

object ResourceOf {

  def apply[F[_]: Applicative, A](fiber: F[Fiber[F, A]]): Resource[F, Fiber[F, A]] = {
    Resource.make { fiber } { _.cancel }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy