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

tofu.internal.instances.TimeoutInstance.scala Maven / Gradle / Ivy

There is a newer version: 0.13.6
Show newest version
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