com.evolutiongaming.kafka.journal.HostName.scala Maven / Gradle / Ivy
The newest version!
package com.evolutiongaming.kafka.journal
import cats.effect.Sync
final case class HostName(value: String) {
override def toString: String = value
}
object HostName {
def of[F[_] : Sync](): F[Option[HostName]] = {
Sync[F].delay {
for {
a <- com.evolutiongaming.hostname.HostName()
} yield {
HostName(a)
}
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy