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

korolev.effect.Close.scala Maven / Gradle / Ivy

package korolev.effect

trait Close[F[_], -T] {
  def onClose(that: T): F[Unit]
  def close(that: T): F[Unit]
}

object Close {
  def apply[F[_], T](implicit ev: Close[F, T]): Close[F, T] =
    implicitly[Close[F, T]]
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy