This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
implicit val awsConfigReader: ConfigReader[AWSConfig] = ConfigReader.fromCursor[AWSConfig] { cur => | |
for { | |
objCur <- cur.asObjectCursor | |
maxConnections <- objCur.atKey("max-connections") | |
maxConnectionsInt <- maxConnections.asInt | |
maxErrorRetry <- objCur.atKey("max-error-retry") | |
maxErrorRetryInt <- maxErrorRetry.asInt | |
endpoint <- objCur.atKey("endpoint") | |
endpointStr <- endpoint.asString | |
region <- objCur.atKey("region") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "MyClass", | |
"type": "record", | |
"namespace": "", | |
"fields": [ | |
{ | |
"name": "name", | |
"namespace": "name", | |
"type": "string" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.hunorkovacs.catsi | |
import cats.effect.Sync | |
import cats.Applicative | |
import org.log4s.{getLogger, Logger => Log4sLogger} | |
trait Logger[F[_]] { | |
def trace(str: String): F[Unit] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.hiya.h4b.cpas.futuretest | |
import akka.actor.ActorSystem | |
import scala.concurrent.{Await, Future} | |
import scala.concurrent.duration._ | |
object FutureTestApp extends App { | |
private val sys = ActorSystem.apply("future-test-app") | |
implicit private val ec = sys.dispatcher |
OlderNewer