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

Skip to content

Conversation

@mschuwalow
Copy link
Member

#resolve #1953

Also, there was a stray reference to DefaultRuntime#Environment that I missed in the BuildHelper.

Interestingly, we can write a fully generic version of this in zio-macros without introducing any new macros. I'll open a pr there later.

/cc @adamgfraser @jdegoes

@neko-kai
Copy link
Member

Just my 2c here on naming – why decorator? Could be mapBlocking, mapRandom, etc...

@jdegoes
Copy link
Member

jdegoes commented Oct 13, 2019

I like Kai's suggestion for names. Then we can have mapAll for the one that maps all the services.

@mschuwalow
Copy link
Member Author

I like Kai's suggestion for names. Then we can have mapAll for the one that maps all the services.

Agreed. I'll push an updated version in a bit

@jdegoes jdegoes merged commit 3294fea into zio:master Oct 13, 2019
@jdegoes
Copy link
Member

jdegoes commented Oct 13, 2019

Really nice work! Going to make pinpoint modifications of part of a standard environment really easy.

ghostdogpr pushed a commit to ghostdogpr/scalaz-zio that referenced this pull request Nov 5, 2019
* introduce ZEnv decorators

* add zenvDecorator function

* update docs

* fix typo

* update mdoc

* update naming
Twizty pushed a commit to Twizty/zio that referenced this pull request Nov 13, 2019
* introduce ZEnv decorators

* add zenvDecorator function

* update docs

* fix typo

* update mdoc

* update naming
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.

Introduce ZEnv decorators for different ZIO modules

3 participants