Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@adamgfraser
Copy link
Contributor

Resolves #2907.

@adamgfraser adamgfraser requested a review from jdegoes February 15, 2020 14:21
testM("provides the part of the environment that is not part of the `ZEnv`") {
val loggingLayer: ZLayer[Any, Nothing, Logging] = Logging.live
val zio: ZIO[ZEnv with Logging, Nothing, Unit] = ZIO.unit
val zio2: ZIO[ZEnv, Nothing, Unit] = zio.provideCustomLayer(loggingLayer)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is really nice.

@jdegoes jdegoes merged commit 2e054c7 into zio:master Feb 15, 2020
@jdegoes
Copy link
Member

jdegoes commented Feb 15, 2020

#1 pain point of the old encoding here... now a simple 1-liner.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create provideCustomLayer

2 participants