Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates for ZIO 2.0.0-RC5 #1410

Closed
wants to merge 2 commits into from

Conversation

gavares
Copy link

@gavares gavares commented Apr 14, 2022

Before submitting pull request:

  • Check if the project compiles by running sbt compile
  • Verify docs compilation by running sbt compileDocs
  • Check if tests pass by running sbt test
  • Format code by running sbt scalafmt

@gavares
Copy link
Author

gavares commented Apr 14, 2022

Unclear to me if the docs should be updated for ZIO 2 or should be left on ZIO 1

@@ -49,11 +49,13 @@ object ArmeriaZioBackend {
.runtime[Any]
.map(runtime => apply(runtime, newClient(options), closeFactory = true))

def managed(options: SttpBackendOptions = SttpBackendOptions.Default): TaskManaged[SttpBackend[Task, ZioStreams]] =
ZManaged.acquireReleaseWith(apply(options))(_.close().ignore)
def managed(

Choose a reason for hiding this comment

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

Does it have sense calling it managed? Maybe rename it to scoped?

Copy link
Author

Choose a reason for hiding this comment

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

I had the same thought. Happy to change it if we think that's a better name.

Copy link
Author

@gavares gavares Apr 15, 2022

Choose a reason for hiding this comment

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

Softwaremill folks make a decision and let me know what you want to see here. Happy to make the changes or leave it as is.

@adamw
Copy link
Member

adamw commented Apr 15, 2022

Thanks, though closing in favor of #1407 :)

@adamw adamw closed this Apr 15, 2022
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.

3 participants