tofu.internal.instances.TimeoutInstance.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tofu-kernel_3 Show documentation
Show all versions of tofu-kernel_3 Show documentation
Opinionated set of tools for functional programming in Scala
package tofu.internal
package instances
import tofu.internal.carriers.{TimeoutCE2Carrier, TimeoutCE3Carrier}
import tofu.time.Timeout
import scala.compiletime.summonFrom
private[tofu] trait TimeoutInstance:
inline given [F[_]]: Timeout[F] = summonFrom {
case carrier: TimeoutCE3Carrier[F] => carrier
case carrier: TimeoutCE2Carrier[F] => carrier
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy