Skip to content

Fix retry/create example  #5

@rwev

Description

@rwev

Thanks for the sweet lib!

The example of how to create a retry with configuration doesn't run:

(def retry (r/create {:max-attempts 10
                      :wait-duration 300}))
clojure.lang.PersistentArrayMap is in unnamed module of loader 'app'; java.lang.String is in module java.base of loader 'bootstrap')

This example requires a name string, e.g.

(def retry "my-retry" (r/create {:max-attempts 10
                      :wait-duration 300}))
=>
#object[io.github.resilience4j.retry.internal.RetryImpl
        0x4941ec8f
        "io.github.resilience4j.retry.internal.RetryImpl@4941ec8f"]

Fixing this would help others get started with the library, as I ran into this issue myself trying to get set up.

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