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

logging4s.cats.SyncToDelayInstance.scala Maven / Gradle / Ivy

package logging4s.cats

import cats.effect.Sync
import logging4s.core.Delay

trait SyncToDelayInstance:

  given [F[*]](using S: Sync[F]): Delay[F] =
    new Delay[F]:
      override def delay[A](a: => A): F[A] = S.delay(a)

object SyncToDelayInstance extends SyncToDelayInstance




© 2015 - 2024 Weber Informatics LLC | Privacy Policy