Skip to content

Instantly share code, notes, and snippets.

Avatar

Maciej Lopacinski hamsterready

  • Sentaca Poland sp. z o.o.
  • Poznan, Poland
View GitHub Profile
View zio-app
object HttpServer {
def run(): ZIO[Blocking with Clock, Throwable, Unit] =
ZIO.runtime[Clock].flatMap { implicit rts =>
val dsl = Http4sDsl[Task]
import dsl._
val app = HttpRoutes.of[Task] {
case GET -> Root / "ping" => Ok("pong")
}
for {
//bec <- ZIO.access[Blocking](_.get.blockingExecutor.asEC)
View keybase.md

Keybase proof

I hereby claim:

  • I am hamsterready on github.
  • I am hamster (https://keybase.io/hamster) on keybase.
  • I have a public key whose fingerprint is AEE4 8BF9 8C0F 934F 9177 4756 1524 40CF 9F2E F8EA

To claim this, I am signing this object:

You can’t perform that action at this time.