 
   You may deref StoreState-holder to access its contents.
 
-  ## Examples
+  ### Examples
 
   ```
   (make-dynamic-store f nil)  ; async initialization, refresh interval 1 second



(defn fetch-if-error?
  [err-ts-key ^long millis-since-error]
  (fn [^StoreState store-state]
    (if-let [err-ts (get store-state err-ts-key)]



(defn wait-if-stale
  "Given staleness duration and refresh-wait timeout in milliseconds, return a function `(fn [state-agent])` that
  detects stale store and waits until timeout for a refresh.

  See: [[make-dynamic-store]]"
  [^long stale-millis ^long timeout-millis]
  (fn [state-agent]
    (let [^StoreState store-state @state-agent
