Skip to content

Is there any complete example of Distage usage that doesn't involve ZIO? #2043

@OOPMan

Description

@OOPMan

Hi there, I'm curious as to whether there is any example code that demonstrates using Distage without ZIO?

All the code in the example application and on the site involve ZIO but according to the page the framework is actually agnostic about this kind of thing?

I played with some code on my side and got a basic plugin injection system working with minimal issues but with the caveat that whenever I want to use the injector I have to do an unsafeGet. Obviously littering my code with stuff labelled unsafe makes me feel...well...unsafe, so I was wondering if there is another accepted way to do things "safely" in a basic Scala application that is not using ZIO, Cats or any other similar frameworks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions