Functions and specs to support construction and processing of data source results.
Functions and specs to support construction and processing of data source results.
(failure & [data config])
Create a failed result, optionally with data and additional keys for the result.
(require '[pharmacist.result :as result])
(result/failure {:message "Oops!"} {::result/retryable? true})
Create a failed result, optionally with data and additional keys for the result. ```clojure (require '[pharmacist.result :as result]) (result/failure {:message "Oops!"} {::result/retryable? true}) ```
(success data)
Create a successful result with data
Create a successful result with data
(success? result)
Returns true if this particular result was a success, as indicated by
the :pharmacist.result/success?
key
Returns true if this particular result was a success, as indicated by the `:pharmacist.result/success?` key
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close