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

com.geirolz.secret.effect.implicits.scala Maven / Gradle / Ivy

There is a newer version: 0.0.15
Show newest version
package com.geirolz.secret.effect

import cats.effect.{Async, Resource}
import com.geirolz.secret.Secret

extension [T](secret: Secret[T])
  def resource[F[_]: Async]: Resource[F, Secret[T]] =
    Resource.make(Async[F].pure(secret))(s => Async[F].delay(s.destroy()))




© 2015 - 2024 Weber Informatics LLC | Privacy Policy