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

io.kinoplan.utils.zio.ZIntegrationCheck.scala Maven / Gradle / Ivy

package io.kinoplan.utils.zio

import zio.{Task, ZEnvironment, ZLayer}

import io.kinoplan.utils.IntegrationCheck

object ZIntegrationCheck {

  def live(
    layers: ZLayer[Any, Throwable, Set[IntegrationCheck[Task]]]*
  ): ZLayer[Any, Throwable, Set[IntegrationCheck[Task]]] = ZLayer
    .collectAll(layers)
    .map(env => ZEnvironment(env.get.flatten.toSet))

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy