Liking cljdoc? Tell your friends :D

pharmacist.result

Functions and specs to support construction and processing of data source results.

Functions and specs to support construction and processing of data source
results.
raw docstring

failureclj/s

(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})
```
raw docstring

successclj/s

(success data)

Create a successful result with data

Create a successful result with data
raw docstring

success?clj/s

(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
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close