Skip to content

jackdaw.admin#retry-exists? error 'call to static method sleep on java.lang.Thread can't be resolved' #369

Description

@tailxcoder

Reflection warning, jackdaw/admin.clj:98:13 - call to static method sleep on java.lang.Thread can't be resolved (argument types: unknown).

jdk: 21
clojure: 1.11.1
jackdaw: 0.9.4

(defn retry-exists?
  "Returns 'true' if topic exists. Otherwise spins as configured."
  [client topic num-retries wait-ms]
  (cond (topic-exists? client topic)
        true

        (zero? num-retries)
        false

        :else
        (do (Thread/sleep wait-ms)
            (recur client topic (dec num-retries) wait-ms))))

maybe add meta , like

(defn retry-exists?
  "Returns `true` if topic exists. Otherwise spins as configured."
  [client topic num-retries ^Long wait-ms] ... )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions